Skip to content

Instantly share code, notes, and snippets.

@Bigcheese
Created March 4, 2012 06:34
Show Gist options
  • Save Bigcheese/1971045 to your computer and use it in GitHub Desktop.
Save Bigcheese/1971045 to your computer and use it in GitHub Desktop.
Item 1: C++11 solves by providing <type_traits>, and is going to fully solve eventually.
Item 2: It's easy to write a C++03 library to do this, even easier in C++11 (with Lambdas).
Item 3: ok, it's easier when your language is used by fewer people and you also implement the compiler.
Item 4: True
Item 5: C++11
Item 6: True
Item 7: C++11
Item 8: Not required by standard
Item 9: unsigned char, by definition
Item 10: C++11
Item 11: Dude, use templates, trivial.
Item 12: C++11
Item 13: Why should it be the same size as int? And C++ has bitfields.
Item 14: Trivial to implement.
Item 15: That's C, don't write code like that.
Item 16: Same as above
Item 17: huh?
Item 18: Yes it does for static sizes, and it's easy to define a dynamic one.
Item 19: C++11
Item 20: Just wrong
Item 21: Not true
Item 22: C++11
Item 23: Why does this matter? And LLVM can do it accross translation units.
Item 24: Wtf? const_cast...
Item 25: constexpr
Item 26: constexpr
Item 27: constexpr
Item 28: True, but this isn't a problem, it's a feature
Item 29: Hasn't been a problem
Item 30: You can write redundant code like that if you want in C++, but it's not confusing to do it the normal way
Item 31: explicit
Item 32: explicit
Item 33: What is this, 1995?
Item 34: Don't do that
Item 35: ?
Item 36: ?
Item 37: Don't do that
Item 38: wtf? not true at all.
Item 39: No it doesn't.
Item 40: Wrong
Item 41: And I care about incorrect compilers because?
Item 42: True
Item 43: How does GC mean flexibility?
Item 44: Already answered this above
Item 45: C++11, and see lambdas.
Item 46: OK? Not a big deal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment