Re:Things That Turbo Pascal Is Smaller Than (2011)
by amelius on Sunday November 15, 2026 @11:56AM
(#50508447)
Because it didn't have nul-terminated strings.
[ Parent
| on HN ]
Re:Things That Turbo Pascal Is Smaller Than (2011)
by phba on Sunday November 15, 2026 @03:31PM
(#50510390)
Not sure if you are being sarcastic. Pascal strings are first class citizens, so it's trivial to add null-termination. Delphi actually does this to allow typecasting.
C, for example, doesn't have strings. It has pointers to memory that might contain characters and, if you are lucky and the stars are aligned, a zero to mark the end. I'll never understand how C strings were accepted as a string representation and not the mad source of bugs and insanity that they are.
Re:Things That Turbo Pascal Is Smaller Than (2011)
by tzot on Sunday November 15, 2026 @04:05PM
(#50510745)
> I'll never understand how C strings were accepted as a string representation
1972 was definitely not a good year for C standardization bodies. I blame that guy Ritchie and his audacity to hack a language on a whim. Even his GitHub page is empty (or misattributed).