[Agda] Re: problem using "with"

Altenkirch Thorsten psztxa at exmail.nottingham.ac.uk
Tue May 15 11:11:54 CEST 2012


It would be intuitive if with would work like a local case expression.

Since we don't have local case expressions before we had with we had to
introduce a new top level function each time we wanted to perform a local
case analysis. With is basically a way to automatize this pattern but in
the end what you really want is having local case expressions. That with
isn't really the thing is already reflected by the need for inspect and
now inspect on steroids :-).

The good news is that we know how to implement local case expressions (or
smart ifs) and I have started this for pisigma. Yes, I know I got stuck on
this completeness proof but this is not essential for the implementation.

Cheers,
Thorsten

On 15/05/2012 09:58, "Nils Anders Danielsson" <nad at chalmers.se> wrote:

>On 2012-05-14 17:50, Guillermo Calderón wrote:
>>  From your explanations, I do understand how the "with" works.
>> But this behaviour results rather counter-intuitive to me.
>
>What kind of behaviour would be intuitive, if any?
>
>-- 
>/NAD
>
>_______________________________________________
>Agda mailing list
>Agda at lists.chalmers.se
>https://lists.chalmers.se/mailman/listinfo/agda

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


More information about the Agda mailing list