[m-rev.] for review: Added cord.condense/2

Julien Fischer jfischer at opturion.com
Mon Jul 1 21:37:40 AEST 2013


On Mon, Jul 1, 2013 at 4:57 PM, Julien Fischer <jfischer at opturion.com>wrote:

>
> On Mon, 1 Jul 2013, Paul Bone wrote:
>
>  For review by anyuone.
>>
>> Added cord.condense/2
>>
>> library/cord.m:
>>    Added new predicate and function
>>
>
> Full stop after that.
>
>
> I don't think there should be a predicate version.
> (I know the list module often defines both predicate and function
> versions of things that are naturally functions, but that's largely for
> historical reasons.)
>

Actually, in some cases we have the predicate versions because they
are useful with state variables -- I don't think that's likely to be the
case
with condense though because the input and output types differ.

( Aside: it did occur to me that the following extension to state variable
notation might
be nice for function applications:

    !A = foo

    ===> !:A = foo(!.A)

or more generally:

    !A = foo(B1, B2, ..., BN)

    ===> !:A = foo(B1, B2, ..., BN, !.A)

).

Cheers,
Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20130701/6bbed8a2/attachment.html>


More information about the reviews mailing list