getChar() vs. getChar!true()

Peter Sommerfeld noreply at rubrica.at
Wed Mar 20 14:37:58 PDT 2013


Ali Çehreli:
> Aside: bool parameters (regular or template) hurt readability. It would  
> be better to have defined a type similar to std.stdio.KeepTerminator and  
> its use with byLine():
>
>    http://dlang.org/phobos/std_stdio.html#.File.byLine

I see. On the other hand: For an internal function like getChar()()
the implementation seem so be a bit to intricate. But for a public
API certainly preferable.

Peter


More information about the Digitalmars-d-learn mailing list