Hacker News new | past | comments | ask | show | jobs | submit
loading story #48204741
loading story #48204681
loading story #48204375
loading story #48204287
loading story #48203976
loading story #48204974
loading story #48204277
loading story #48205595
loading story #48204869
loading story #48205014
loading story #48210886
Well, you can't write malloc in conforming C, which hurts rather more than remembering to write bitcast as memcpy on char pointers.

Doesn't matter though because you aren't writing standards conforming C. You're writing whatever dialect your compilers support, and that's probably (module bugs) much better behaved than the spec suggests.

Or you're writing C++ and way more exposed to the adversarial-and-benevolent compiler experience.

The type aliasing rules are the only ones that routinely cause me much annoyance in C and there's always a workaround, whether if it's the launder intrinsic used to implement C++, the may_alias attribute or in extremis dropping into asm. So they're a nuisance not a blocker.

loading story #48204021
loading story #48204421
loading story #48204976
loading story #48203948
loading story #48212025
loading story #48209669
loading story #48212334
loading story #48214176
loading story #48204850
loading story #48206930
loading story #48205037
loading story #48206382
loading story #48204724
loading story #48205285
loading story #48206160
loading story #48205853
loading story #48209530
loading story #48206809
loading story #48207424
loading story #48205080
loading story #48207896
loading story #48205591
loading story #48205105
loading story #48203955
loading story #48203996
loading story #48207899
loading story #48205396
loading story #48205366
loading story #48206864
loading story #48216298
loading story #48205207
loading story #48213063
loading story #48204220
loading story #48209876
loading story #48215803
loading story #48203934
loading story #48205227
loading story #48211440
loading story #48207628
loading story #48206643
loading story #48204215
loading story #48205903
loading story #48204180
loading story #48204831
loading story #48204444
loading story #48206031
loading story #48204023
loading story #48211050
loading story #48208972
loading story #48206923
loading story #48203960
a good case can be made that use of C++ is a SOX violation

So Linus was right? But for a second reason too:

C++ is a horrible language. It’s made more horrible by the fact that a lot of substandard programmers use it, to the point where it’s much, much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do _nothing_ but keep the C++ programmers out, that in itself would be a huge reason to use C.

That is, accepting C++ code from programmers who use C++ could be a SOX violation ;-)

loading story #48204751
loading story #48204077
loading story #48213458
loading story #48210349
loading story #48212813
loading story #48205795
loading story #48221037
loading story #48204400
loading story #48204401
loading story #48204210
loading story #48204011
loading story #48203949
loading story #48205333
loading story #48207029
loading story #48204178
loading story #48204804
loading story #48204481
loading story #48204445
loading story #48204184
loading story #48204123
loading story #48205832
loading story #48206411
loading story #48205543