[m-dev.] syntactic suggar suggestion for state variables

Ben Schmidt b.schmidt at ugrad.unimelb.edu.au
Fri Jan 12 18:22:34 AEDT 2007


>> So the question is now, if the type+mode declaration should be:
>>
>> :- pred p(mysvtype::!(in, out)) is det.
>> % more concise
>>
>> or
>>
>> :- pred p(!mysvtype::!(in, out)) is det.
>> % better parallel with the separate mode-type decls.
> 
> The latter seems more consistent to me.

Yes, definitely better.

Ben.


--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the developers mailing list