Loading video...

Video Failed to Load

Go Home

I removed ';' from C

85,680 views • 1 year ago •via X (Twitter)

36 Comments

Тsфdiиg's profile picture
Тsфdiиg1 year ago

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

Dinam's profile picture
Dinam1 year ago

Bro is trying to turn C to JavaScript

learntToCode's profile picture
learntToCode1 year ago

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

Parth's profile picture
Parth1 year ago

Okay now remove { } and boom it's Python

Noga Navon🏳️‍⚧️ الزهرة الحكيمة נוגה נבון's profile picture
Noga Navon🏳️‍⚧️ الزهرة الحكيمة נוגה נבון1 year ago

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.

Тsфdiиg's profile picture
Тsфdiиg1 year ago

Pascal my beloved

Pehdrew's profile picture
Pehdrew1 year ago

I'll use ; more in python.

⃠ emojibake's profile picture
⃠ emojibake1 year ago

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

vitorpy's profile picture
vitorpy1 year ago

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

Samyar 🌌's profile picture
Samyar 🌌1 year ago

“Let’s recompile the compiler”

ozzyalone's profile picture
ozzyalone1 year ago

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.

sukru tikves's profile picture
sukru tikves1 year ago

“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)

allisx86's profile picture
allisx861 year ago

C-emi colon

Alexey Lyakhov's profile picture
Alexey Lyakhov1 year ago

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.

Felipe Rocha⚣⚔️🇻🇦#voltaGLS's profile picture
Felipe Rocha⚣⚔️🇻🇦#voltaGLS1 year ago

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

Paweł Zegartowski 👾's profile picture
Paweł Zegartowski 👾1 year ago

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

Svetlin Totev's profile picture
Svetlin Totev1 year ago

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...

11revert's profile picture
11revert1 year ago

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

beter's profile picture
beter1 year ago

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

lothro12's profile picture
lothro121 year ago

now make a python compiler that expects semicolons

sorek's profile picture
sorek1 year ago

I like semicolons for clarity. I agree it's mostly for humans, but it really helps with getting rid of misunderstandings.

Rafael Coelho's profile picture
Rafael Coelho1 year ago

why?

Тsфdiиg's profile picture
Тsфdiиg1 year ago

why not?

term est 🍓TRY AND STOP ME 🏳️‍⚧️'s profile picture
term est 🍓TRY AND STOP ME 🏳️‍⚧️1 year ago

I've never seen such bullshit in my life before No, the compiler can't know where you need a semicolon. Forcing the compiler to do so, only creates ambiguities Stop spreading misinformation especially when you have such a large follower base void a(){} void b() { return a(); }

Тsфdiиg's profile picture
Тsфdiиg1 year ago

1. It's ironic that my change literally doesn't break your example. It's specifically for statements that are `<rvalue><;>`, not `return <rvalue><;>` 2. You are the one spreading misinformation by calling educational material that is designed to provide food for thought and spark constructive discussion "misinformation". 3. By bringing the "follower base" you are revealing that you are simply jealous and cannot be take seriously. :)

Pere's profile picture
Pere1 year ago

Without semicolons, it's easier to make mistakes that compile without errors, which create harder bugs to debug, or even notice.

Nephew Tom's profile picture
Nephew Tom1 year ago

Wow! Thank you for this.🙏 Yes, semicolons between expressions needed/preferred.

Tiago AOA's profile picture
Tiago AOA1 year ago

Removing the semi-colon introduces ambiguities. This kind of ambiguities (what should "run" first) might be useful for performance, but I'd rather have a proper language for that.

Raindrop's profile picture
Raindrop1 year ago

😨😨

D T Dubs | Polyunsaturated Fatty Pragmatics 🇺🇸's profile picture
D T Dubs | Polyunsaturated Fatty Pragmatics 🇺🇸1 year ago

Could've stopped at "greatest semicolon conspiracy ever" - Pft, silly hoomans, you've been duped! 🤓 All "proper syntax" chatter aside, this is a great demo on benefits of understanding compilers. Some of us went a long time taking compilers for granted before we learned.

emmo00.eth's profile picture
emmo00.eth1 year ago

@GODPIXELthereal

shaurya's profile picture
shaurya1 year ago

YOU MONSTER...

Ivan Bushmarinov's profile picture
Ivan Bushmarinov11 months ago

I think you trade the missing semicolon errors for missing brace ones in that case.

『Llianen』🇵🇹's profile picture
『Llianen』🇵🇹1 year ago

As someone that spent on previous projects 85% of work time fixing people's made bugs, I feel like this would triple the bugs easily

Hugh Hoult's profile picture
Hugh Hoult1 year ago

REMOVE THE NEW LINE CHARACTER FROM C, IT IS TIME!

MartinJ's profile picture
MartinJ1 year ago

Use a linter?

Related Videos