36 条评论
评论来自 X (Twitter) 上的原帖

@tsoding
- Tiny C Compiler: - B reference: - The Patch:
76 个赞

@destinydinam
Bro is trying to turn C to JavaScript
49 个赞

@learntToCode
This heresy against Holy C has been noted. May The Emperor’s mercy find you quickly.
30 个赞

@ShyParth
Okay now remove { } and boom it's Python
23 个赞

@Noga_Navon
My hot take that the last statement in a block shouldn't have a semicolon, but that curly braces should be mandatory even if there's only one statement within.
21 个赞

@tsoding
Pascal my beloved
18 个赞

@Pehdrew_
I'll use ; more in python.
13 个赞

@emojibakemono
in js the annoying thing about asi is, it turns return 42 into return; 42; which then returns undefined instead of 42
13 个赞

@vitorpy
You messed with the primal forces of nature, Mr. @tsoding!
12 个赞

@samyarkd
“Let’s recompile the compiler”
7 个赞

@ozzyalone
I think the case for semicolons in C is that it's such an old language that, at the time, there probably wasn't any certainty that every OS would use LF or CR (or both) as an EOL marker; so by requiring a programmer to use a semicolon, there was always an EOL marker.
7 个赞

@stikves
“I removed the safety goggles and respirator. Most of the time things are just fine” Semicolon is there for a very specific reason. It breaks ambiguity (And frankly we needed some more checks)
6 个赞

@allisx86
C-emi colon
6 个赞

@justfly1984
I was disabling semicolons for years, until I found one very specific case when I needed semicolons. The case was global search with regular expression across whole codebase with replacement, for the part of string which was at the end of the line, but also the string was used in different places, and should be replaced only at the end of the line. Enabling semicolons solved this issue, but made a mess with git repository. Since then I just keep semicolons enabled in all of my projects.
4 个赞

@felipebeyer
Code is meant to be read by humans too, unlike binary files. So I prefer the C semicolon.
4 个赞

@zegarp
I'd rather add it to python, along with the curly braces instead of indentations.
4 个赞

@SvetlinTotev
Humans mostly look at the indentation. So the computer should do the same. Otherwise it is easy to write something that doesn't behave the way a human would assume. Every bug and exploit due to C syntax is caused by misleading indentation but devs still say it shouldn't matter...
4 个赞

@11revert
Most programming languages are too verbose, they should take inspiration from rust:
4 个赞

@shbhtngpl
@theshashwat20 i am boutta write c like i write javascript and you will witness all of it live
3 个赞

@thro1239729
now make a python compiler that expects semicolons
2 个赞













