[Issue 9589] Add hasEmpty template to std.range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 25 17:06:51 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9589



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-25 17:06:49 PST ---
(In reply to comment #2)
> I don't know that it's necessarily a bad idea to add this, but _all_ ranges
> have empty by definition.

Hmm yeah, isInputRange would actually work here. Knowing this now I'm on the
fence of whether the enhancement is worth adding. Perhaps non-range types could
implement "empty", but in that case this doesn't belong to std.range.

I guess we can close it then.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list