On Monday, 27 May 2013 at 10:26:37 UTC, Russel Winder wrote:
Does the code at http://dlang.org/wc.html represent the canonical D codestyle?I note that: rdmd wc.d < wc.d fails to behave analogously to how: /usr/bin/wc < wc.d does.
I'm pretty sure canonical wc in D would use ranges now (spliter, byLine, walkLength). And yes, you are right about how it isn't very Unix-like with regards to how it handles the input.
