The new, new phobos sneak preview
Rainer Deyke
rainerd at eldwood.com
Mon Apr 13 00:56:11 PDT 2009
Michel Fortin wrote:
> Which makes me think of one thing: why "isBounded" instead of plain and
> simple "bounded"? Ranges don't respond to "isEmpty": they have "empty"
> instead.
"bounded(x)" can be read as a predicate ("Is x bounded?"), an assertion
("x is bounded, so treat it as such.") or even a conversion (although I
admit that I can think of a meaningful way to convert an unbounded
sequence into a bounded sequence). "isBounded(x)" is unambiguous.
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list