On 4/11/11 2:41 PM, Nick Sabalausky wrote:
"KennyTM~"<kenn...@gmail.com> wrote in message
news:invke1$2gv6$1...@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.
I think it's not all that bad to state until returns a range with such
and such characteristics. After all this is the norm in dynamically
typed languages.
Andrei