
4 Mar
2004
4 Mar
'04
1:34 p.m.
Beman Dawes wrote:
Even the "why not" version seems overly complex compared to a console iostreams "Hello, world". Why not just:
winout << title("Example window") << button("Hello, world!") << wait_for(delete_signal);
I'm not necessarily pushing that exact approach, but just pointing out more C++-like alternatives.
Sorry, but that's just change for change's sake. It is not more C++-like. Even if you insist that the original decision to implement "C++-like I/O" by overloading << and >> is still the correct one, after C++ evolved considerably, a window is not a stream.