Empty VS null array?

Dicebot public at dicebot.lv
Fri Oct 18 09:36:28 PDT 2013


On Friday, 18 October 2013 at 15:42:56 UTC, Andrei Alexandrescu 
wrote:
> That's bad API design, pure and simple. The function should 
> e.g. return the string including the line terminator, and only 
> return an empty (or null) string upon EOF.

I'd say it should throw upon EOF as it is pretty high-level 
convenience function.


More information about the Digitalmars-d mailing list