Exceptional coding style

Jacob Carlborg doob at me.com
Mon Jan 14 23:35:28 PST 2013


On 2013-01-14 21:57, monarch_dodra wrote:

> Apart from a few *style* issues, the only thing the article contains was
> mostly hate for the stl.
>
> I understand one might dislikes the stream operators due to the syntax
> (myself included), but once you've used them more than once, and know
> how to use them, they aren't a problem. The strong typing they provide
> is simply unmatched in C++. The article even mentions that NOT using
> stream operators was one of their biggest source of bugs. And Carmack
> himself replies stating that in retrospect: StrongTyping > WeirdCode.

With variadic templates introduced in C++11 can't you implement a type 
safe writeln or similar just like Phobos has?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list