On Saturday, 23 February 2013 at 22:26:51 UTC, notna wrote:
Thanks for this very good explanations and examples. This "Range" topic is a constant confusion, see one of many examples:

http://forum.dlang.org/thread/[email protected]

I don't understand why D cannot be simple AND efficient.
I think every function, which returns a kind of a "Range", should also always be able to return "char", "char[]", "char[][]", "string" and "string[]" per default, depending on what is expected.

Being lazy is often critical for performance. Returning a normal type automatically implies eagerness.

Reply via email to