updating labelled fields

Zdenek Dvorak rakdver@hotmail.com
Thu, 09 May 2002 14:55:33 +0000


Hello.

>I like this idea, but I think it will cause ambiguity in
>parsing.  Consider:
>
>blah = do {foo} ...
>
>should foo be parsed as a statement list (under the assumption that the
>open brace is instead of using layout) or as an assignment, as in:
>
>blah = do {foo}
>           x <- bar
>
>(which probably wouldn't typecheck, but we don't know that at parsing.)  i
>could be wrong and it might be able to be made work, but i'm not
>convinced...

I don't think this is ambigous -- do is a keyword, so no record field update
can be assumed after it.

Zdenek

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com