[nem-en] small detail about indent based syntax
Philippe Quesnel
philippe.quesnel at gmail.com
Tue Nov 8 02:22:47 CET 2005
On 11/7/05, Kamil Skalski <kamil.skalski at gmail.com> wrote:
>
> > >
> > it is allowed for normal cases ! ;-p
> > | 12 => print("allo");
> > | 23 => print("bonjour");
> >
>
> The problem is that it is not allowed for multiple clauses in one match
> case:
>
> match (x) {
> | 12 ;
> | 23 => print ("aa");
> }
>
> and this is what our indentation frontend generates automatically for
match (x)
> | 12
> | 23 => print ("aa")
hehe, yeah that's what I meant by "it's allowed for normal cases ! 'wink,
tongue out' " ;-)
as in "if it's allowed for normal cases, why not for multiple clauses"
so my understanding of what the problem is, was correct, cool.
Probably it is possible to workaround in parser and allow such code.
>
>
I guess it would be nice not to have special cases when using indent syntax.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20051108/60ac2cbb/attachment.html
More information about the devel-en
mailing list