[m-dev.] Introduce !! rather than ^elem() for indexing

Ralph Becket rafe at cs.mu.OZ.AU
Fri Oct 12 10:52:52 AEST 2001


Simon Taylor, Thursday, 11 October 2001:
> 
> I don't think it works very well when field accesses or updates are
> nested. To me,
> 	X !! 1 ^ field := Value
> doesn't (mentally) parse as well as
> 	X ^ elem(1) ^ field := Value.

`(X !! 1) ^ field' looks fine to me.

Still, we probably don't need yet more syntax.

- Ralph
--------------------------------------------------------------------------
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