This account is temporarily suspended to cool down. The suspension period ends in 9 days.
1 reputation
540106
bio website
location
age
visits member for 4 years, 4 months
seen 10 hours ago

Author of C++ tutorials and Wide language.

Foo


Mar
26
comment Use of SAL annotations for C++
I have used SAL with C++. It consisted of deleting all the SAL. I recommend not using crappy out parameters.
Mar
26
comment Use of SAL annotations for C++
Far too broad asking for just general experiences.
Mar
23
answered Null object pattern or nullable
Mar
22
comment Is it reasonable to use a decorator to instantiate a singleton in Python?
It's not reasonable to have singletons; regardless of the language or implementation.
Mar
22
comment Where is “the line” for copyleft licenses
Then vote to close it, instead of posting "I love GPL" as an answer.
Mar
21
comment Is it possible to “bake dimension into a type” in haskell?
Well, values only appear at runtime, so you can't really talk about values at compile-time unless you want to solve the Halting Problem. All I'm saying is that even in C++ you can just template on the dimensionality and it works fine. Does that not have an equivalent in Haskell?
Mar
21
comment Where is “the line” for copyleft licenses
This has way too much GPL-fanboying in it.
Mar
20
comment Is it possible to “bake dimension into a type” in haskell?
That's not dependent typing at all. Dependent typing talks about types at runtime, but baking dimensionality into the type can easily be done at compile-time.
Mar
20
awarded  Curious
Mar
16
comment Why don't we have a default character for the opposite of 0?
@Cawas: Then you might want to discuss what you actually want to discuss, instead of MAX_VALUE.
Mar
16
comment Why don't we have a default character for the opposite of 0?
No, it's far less useful than zero because there are vastly fewer cases in which you need to refer to it. They're implemented basically identically and we didn't get used to using MAX_VALUE because we don't need to use MAX_VALUE.
Mar
16
comment Why don't we have a default character for the opposite of 0?
It is a most arbitrary constant. There's nothing particularly useful about MAX_VALUE. It's far less useful than 0.
Mar
16
answered Why don't we have a default character for the opposite of 0?
Mar
12
comment Why am I getting field visibility warnings in Sonar?
That does not explain why this should be automatically banned.
Mar
5
comment Avoiding std::forward and Rvalue References
@Deduplicator: There's nothing in the guide that's useful for an experienced C++ programmer, and if you're a new C++ programmer the shit will do far more damage than it's worth.
Mar
5
comment Avoiding std::forward and Rvalue References
@Otomo: They would, however, have to expend time training their programmers up from C89, which is time and money they can save if they don't improve their codebase with new, better features.
Mar
5
comment Avoiding std::forward and Rvalue References
@RobertHarvey: The previous versions stated it more explicitly, but they still carry this: "In some cases there might be good arguments for changing certain style rules, but we nonetheless keep things as they are in order to preserve consistency." Of course I could also debate the merits of each rule individually with you if you prefer.
Mar
5
comment Avoiding std::forward and Rvalue References
@Otomo: The reasoning behind the document is that Google have a bunch of C89 and decided that since their old code was shit, their new code had to be shit too to interoperate with it.
Mar
5
answered Avoiding std::forward and Rvalue References
Mar
4
comment In ifs inside for loops, prefer checking for true, or for false and continue?
Those places and languages are wrong.