C2y: Hitting the Ground Running
31 points by fanf
31 points by fanf
Declarations in if statements are neat, but the semicolon-condition syntax, plus the declared variable being available in both branches, is actually amazing. I can’t wait to try this out.
Minor nit:
// We do not have string binary because \b is already bell
'\b'
is backspace. (BEL is '\a'
, as in “alert”.)
On the one hand this is amazing, but on the other hand… I respect and admire thephd, but I can’t understand how they manage to keep dealing with that committee year after year. I just hope they have a really fulfilling home life. Every time I read one of these my unkind hindbrain says “what a tragic waste of skill and talent”.
these are all excellent things to see; i love to see folks working to (slowly) make c a better language
(maybe twenty years from now 070
will actually mean “seventy”, and that’ll be awesome)
I don’t think that’s a good idea, I’d much rather it threw a warning/error than risk miscompiling old code.
Likewise, I could see issues with people writing code against the new standard, not knowing about the legacy behaviour of leading zeros, and then when someone compiles the code with and old compiler the result will be just plain wrong - without even a warning.
i think in twenty years if old code still poses a problem in this particular regard something has gone wrong
definitely worth emitting a warning before then, though. give people twenty years of very obvious warning and they shall have no excuse
Dunno why you would want to introduce such gratuitous breakage and pointless churn. It’s possible to make octal numbers less of a footgun without adding new footguns.
Side note, if whomever is running the site is reading:
On mobile the title image just zooms in on the guy’s crotch. Probably not what you were after.