[m-dev.] @ syntax (was: Freeze the compiler)
Michael Day
mikeday at corplink.com.au
Tue Nov 14 19:00:33 AEDT 2000
> It would just be a syntactic transformation.
> You would just declare e.g.
>
> :- func elem(map(K, V), K) = V.
> :- func 'elem :='(map(K, V), K, V) = map(K, V).
In the 'elem :=' example, must the space be preserved exactly? Will
including an extra space or two produce obscure error messages?
> It seems a bit excessive to have _four_ different syntaxes for
> accessing array elements:
So does this mean the @ syntax won't be included? Is it complicated (ie:
will it take long) to add the extensions to the ^ syntax?
Michael
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list