YesOrNo: useful idiom helper or wanking?

KennyTM~ kennytm at gmail.com
Mon Apr 11 13:18:55 PDT 2011


On Apr 12, 11 03:41, Nick Sabalausky wrote:
> "KennyTM~"<kennytm at gmail.com>  wrote in message
> news:invke1$2gv6$1 at digitalmars.com...
>> On Apr 12, 11 03:05, Andrej Mitrovic wrote:
>>> Because without some form of syntax highlighting the function headers
>>> are almost unreadable from the website:
>>> http://i.imgur.com/B5M6u.png
>>>
>>> It's a wall of text.
>>
>> Well that's a separate issue. Firstly the struct Until shouldn't appear
>> (e.g. use 'auto' return). Then the signature appeared would become
>>
>>      until(alias pred="a==b", Range, Sentinel)(Range range, Sentinel
>> sentinel, OpenRight openRight = OpenRight.yes);
>>      until(alias pred, Range)(Range range, OpenRight openRight =
>> OpenRight.yes);
>>
>> This would break half of the wall.
>
> ...And suddenly people won't know what the hell to expect it to return.
>
>

That's why you assign the result using 'auto'.

(This was discussed before, but I can't find the post.)



More information about the Digitalmars-d mailing list