4 ms·
If my fellow devs cringe at C, imagine their reaction to Pascal
by jvanderbot 1y ago
If my fellow devs cringe at C, imagine their reaction to Pascal
- mikewarot 1y agoC has all the things to hate in a programming language CaSe Sensitivity Weird pointer syntax Lack of a separate assignment token Null terminated strings Macros - the evil scourge of the universe On the plus side, it's installed everywhere, and it's not indent sensitive
- jvanderbot 1y agoAt this point, you're talking to someone who isn't here
- ioasuncvinvaer 1y agoExcept for null terminated strings these don't seem like mayor issues to me. Can you elaborate?
- 1718627440 1y ago> Lack of a separate assignment token What does that mean?
- kbolino 1y agoAssignment is = which is too close to equality == and thus has been the source of bugs in the past, especially since C treats assignment as an expression and coerces lots of non-boolean values to true/false wherever a condition is expected (if, while, for). Most compilers warn about this at least nowadays.
- tialaramex 1y agoEven with warnings this is just terrible. People need to stop inventing languages where "False" is true, or an empty container is false or other insane "coercions" of this kind. True is true, and false is false, if you're wondering whether this Doodad is Wibbly, you should ask that question not rely on a convention that Wibbly Doodads are somehow "truthy" while the non-Wibbly ones are not.
- zelphirkalt 1y agoYou mean "mere string replacement macros, instead of hygienic macros", of course : )
- cryptonector 1y ago> C has all the things to hate in a programming language > CaSe Sensitivity Wait, what, you.. you want a case-insensitive language? Like SQL? I love SQL, but please no more case-insensitive programming languages!