24,655 reputation
534100
bio website
location
age
visits member for 4 years
seen 11 hours ago

Author of C++ tutorials and Wide language.

Foo


Dec
6
comment Early destruction of objects in c++
−1 because you did not simply recommend a non-global.
Dec
6
comment Early destruction of objects in c++
−1 for not simply recommending a non-global.
Dec
6
comment Early destruction of objects in c++
Plain fact is, you should not be using mutable global variables.
Nov
30
revised Unique_ptr to hold memory for custom VM
added 2 characters in body
Nov
30
comment Unique_ptr to hold memory for custom VM
Good luck with the C++ interop - you'll need it.
Nov
30
awarded  Nice Answer
Nov
30
answered Unique_ptr to hold memory for custom VM
Nov
28
comment What is the point of making a syntactic distinction between standard and user-defined types?
@RobertHarvey: That assumes that you can't recognize Standard types on sight. Or by mousing over them in your environment and seeing the "std::". Or by using Go To Definition or whatever. So basically, it doesn't apply.
Nov
28
comment What is the point of making a syntactic distinction between standard and user-defined types?
@delnan: Yes. That's nothing more than an appeal to authority on the part of "Many people". If "Many people" want to get over here and discuss their reasoning, they're free to do so, and until then, they have nothing to add. FTR, I use uppercase for UDTs too... but also for primitives whenever I have cause to need to alias them.
Nov
28
answered What is the point of making a syntactic distinction between standard and user-defined types?
Nov
27
answered Some tips on creating programs in C?
Nov
25
awarded  Yearling
Nov
20
comment Batching immutable object changes?
That is a shitty, shitty design. The constructor design is vastly superior.
Nov
8
comment What's the main advantage of metaprogramming?
Too opinion-based.
Nov
4
awarded  Great Answer
Nov
3
comment Should a getter throw an exception if its object has invalid state?
If they can be validly optional, there's no reason for him to throw in the first place.
Nov
3
awarded  Good Answer
Nov
2
awarded  Nice Answer
Nov
2
comment Should a getter throw an exception if its object has invalid state?
@DavidWallace: Which is the situation described in the OP. So every case that he's discussing.
Nov
2
comment Should a getter throw an exception if its object has invalid state?
To expand on why this solution is batshit insane, you have to check for nullity on every single call to getCompleteName, which is hideous.