[m-rev.] for review: new implementation of string__format in mercury.
Mark Brown
dougl at cs.mu.OZ.AU
Fri Feb 1 14:54:29 AEDT 2002
On 31-Jan-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> p.incani, Thursday, 31 January 2002:
> > +:- func format_int(list(char), maybe(int), maybe(int), int) = string.
> > +format_int(Flags, Width, Prec, Int) = String :-
> > + %
> > + % Find integers absolute value, and take care of special
> > + % case of precision zero with an integer of 0.
> > + %
> > + ( Int = 0, Prec = yes(0)
> > + ->
>
> Quirky syntax: Mercury programmers would typically write
>
> (
> Int = 0,
> Prec = yes(0)
> ->
> ...
> )
>
For more information on the Mercury group's coding standards, refer
to the coding standards document in compiler/notes/coding_standards.html.
Cheers,
Mark.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list