[nem-en] Re: match on specific parameter

Piotr Kalinowski pitkali at gmail.com
Sun Jan 29 19:01:31 CET 2006


On 29/01/06, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> Nice, but I think it is a little bit "unclean". That is, 'this' comes
> there from nowhere. Also, would you ommit this rule if there is some
> parameter?
>
> > foo (match this, some_flag : bool)
> >   | ...
> >
>
> I guess
> foo (some_flag : bool)
>   match (this)
>     |
>
> is cleaner.

I agree.

I would also be in favour of def foo (match lst, acc) syntax.

Regards,
--
Intelligence is like a river: the deeper it is, the less noise it makes



More information about the devel-en mailing list