[m-rev.] For review: ensure proper initialisation of pretty_printer

Peter Wang novalazy at gmail.com
Tue Apr 27 14:35:56 AEST 2010


On 27 April 2010 14:12, Ralph Becket <rafe at csse.unimelb.edu.au> wrote:
> Peter Wang, Tuesday, 27 April 2010:
>> On 27 April 2010 13:27, Ralph Becket <rafe at csse.unimelb.edu.au> wrote:
>> > Peter Wang, Tuesday, 27 April 2010:
>> >
>> > Why is the 'no' in braces?
>>
>> That's the representation of bool.no (a 1-tuple with an atom).
>> The native Erlang false value is `false'.
>
> Right, I was just wondering why '{no}' rather than just 'no'?
> I assume this is just for regularity in the Mercury -> Erlang
> conversion?

It was an optimisation to make later, which was never made.
I might have tried it in a workspace and found it not worthwhile
(at least in some cases the Erlang compiler can be convinced not to
create such values dynamically).

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



More information about the reviews mailing list