Andrei Alexandrescu wrote:
Hey all y'all,


Here's another nice bicycle shed discussion. During the recent discussion about globals being harmful, Walter told me something that made me think. I said, hey, there are things that are global - look at stdout. He said, well, that's a bad thing. He then argued that it would be better and cleaner to write:

stdout.writeln("Hello, world");

instead of the current:

writeln("Hello, world");

On one hand, I agree with Walter. On the other, I want to avoid the phenomenon of the all-too-long "Hello, world" example.

What do you think?


Andrei

I have always thought of writefln as the flagship function of Phobos. It's now looking as though the connection between Phobos2 and Phobos1 is not really any stronger than between Tango1 and Phobos1.
(This is an observation, not intended to be critical in any way).

Reply via email to