跳过导航
I removed ';' from C
0:00 / 6:19

I removed ';' from C

Тsфdiиg

@tsoding12万 位关注者

在 X 上查看
2,085 个赞下载原帖

85,680 次观看

I removed ';' from C

36 条评论

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

  • Тsфdiиg 的头像

    @tsoding

    - Tiny C Compiler: - B reference: - The Patch:

    76 个赞

  • Dinam 的头像

    @destinydinam

    Bro is trying to turn C to JavaScript

    49 个赞

  • learntToCode 的头像

    @learntToCode

    This heresy against Holy C has been noted. May The Emperor’s mercy find you quickly.

    30 个赞

  • Parth 的头像

    @ShyParth

    Okay now remove { } and boom it's Python

    23 个赞

  • Noga Navon🏳️‍⚧️ الزهرة الحكيمة נוגה נבון 的头像

    @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 个赞

  • Тsфdiиg 的头像

    @tsoding

    Pascal my beloved

    18 个赞

  • Pehdrew 的头像

    @Pehdrew_

    I'll use ; more in python.

    13 个赞

  • ⃠ emojibake 的头像

    @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 的头像

    @vitorpy

    You messed with the primal forces of nature, Mr. @tsoding!

    12 个赞

  • Samyar 🌌 的头像

    @samyarkd

    “Let’s recompile the compiler”

    7 个赞

  • ozzyalone 的头像

    @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 个赞

  • sukru tikves 的头像

    @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 的头像

    @allisx86

    C-emi colon

    6 个赞

  • Alexey Lyakhov 的头像

    @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 个赞

  • Felipe Rocha⚣⚔️🇻🇦#voltaGLS 的头像

    @felipebeyer

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

    4 个赞

  • Paweł Zegartowski 👾 的头像

    @zegarp

    I'd rather add it to python, along with the curly braces instead of indentations.

    4 个赞

  • Svetlin Totev 的头像

    @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 的头像

    @11revert

    Most programming languages are too verbose, they should take inspiration from rust:

    4 个赞

  • beter 的头像

    @shbhtngpl

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

    3 个赞

  • lothro12 的头像

    @thro1239729

    now make a python compiler that expects semicolons

    2 个赞