[erlang-patches] [PATCH] Fix lists:foreach/2's documented spec

Tuncer Ayaz tuncer.ayaz@REDACTED
Mon Oct 11 15:34:23 CEST 2010


2010/10/11 Björn Gustavsson:
> On Mon, Oct 11, 2010 at 3:04 PM, Kostis Sagonas wrote:
>>
>> It would be a much better world if all void() functions were made to return
>> some consistent value such as 'ok'.
>>
>
> I will accept for 'pu' a patch that changes all
> occurrences of void() to 'ok' (or a patch that
> only keeps void() for funs and callback function
> to indicate that the return value is not important).
> However, I think that the decision to graduate
> such a branch should be taken by the OTP
> Technical Board.

I have to re-ask:
Is it wrong to match ok=foreach/2 even though the spec says
that and it's what the current implementation does?


More information about the erlang-patches mailing list