[mercury-users] Proposed change to char literal syntax

Ralph Becket rafe at csse.unimelb.edu.au
Fri Oct 6 10:37:34 AEST 2006


Nicholas Nethercote, Friday,  6 October 2006:
> On Thu, 5 Oct 2006, Michael Day wrote:
> 
> >>>If integer literals were customisable as well then Mercury could support 
> >>>BigInteger literals and other number types transparently. Defining the 
> >>>semantics of literal values in the library seems more elegant than 
> >>>hard-wiring them.
> >>
> >>I disagree.
> >
> >May I ask why?
> 
> I just think allowing numeric literals to have more than one possible 
> meaning is a bad idea, due to the possibility of confusion.

Yes.  The way numeric literals are handled for instance in Haskell is
pretty painful, in my experience.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list