Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

I removed ';' from C

85,672 görüntüleme • 1 yıl önce •via X (Twitter)

36 Yorum

Тsфdiиg profil fotoğrafı
Тsфdiиg1 yıl önce

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

Dinam profil fotoğrafı
Dinam1 yıl önce

Bro is trying to turn C to JavaScript

learntToCode profil fotoğrafı
learntToCode1 yıl önce

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

Parth profil fotoğrafı
Parth1 yıl önce

Okay now remove { } and boom it's Python

Noga Navon🏳️‍⚧️ الزهرة الحكيمة נוגה נבון profil fotoğrafı
Noga Navon🏳️‍⚧️ الزهرة الحكيمة נוגה נבון1 yıl önce

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 profil fotoğrafı
Тsфdiиg1 yıl önce

Pascal my beloved

Pehdrew profil fotoğrafı
Pehdrew1 yıl önce

I'll use ; more in python.

⃠ emojibake profil fotoğrafı
⃠ emojibake1 yıl önce

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

vitorpy profil fotoğrafı
vitorpy1 yıl önce

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

Samyar 🌌 profil fotoğrafı
Samyar 🌌11 ay önce

“Let’s recompile the compiler”

ozzyalone profil fotoğrafı
ozzyalone1 yıl önce

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 profil fotoğrafı
sukru tikves1 yıl önce

“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 profil fotoğrafı
allisx861 yıl önce

C-emi colon

Alexey Lyakhov profil fotoğrafı
Alexey Lyakhov1 yıl önce

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 profil fotoğrafı
Felipe Rocha⚣⚔️🇻🇦#voltaGLS1 yıl önce

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

Paweł Zegartowski 👾 profil fotoğrafı
Paweł Zegartowski 👾1 yıl önce

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

Svetlin Totev profil fotoğrafı
Svetlin Totev1 yıl önce

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 profil fotoğrafı
11revert1 yıl önce

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

beter profil fotoğrafı
beter1 yıl önce

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

lothro12 profil fotoğrafı
lothro121 yıl önce

now make a python compiler that expects semicolons

sorek profil fotoğrafı
sorek1 yıl önce

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

Rafael Coelho profil fotoğrafı
Rafael Coelho1 yıl önce

why?

Тsфdiиg profil fotoğrafı
Тsфdiиg1 yıl önce

why not?

term est 🍓TRY AND STOP ME 🏳️‍⚧️ profil fotoğrafı
term est 🍓TRY AND STOP ME 🏳️‍⚧️1 yıl önce

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 profil fotoğrafı
Тsфdiиg1 yıl önce

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 profil fotoğrafı
Pere1 yıl önce

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

Nephew Tom profil fotoğrafı
Nephew Tom11 ay önce

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

Tiago AOA profil fotoğrafı
Tiago AOA1 yıl önce

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 profil fotoğrafı
Raindrop1 yıl önce

😨😨

D T Dubs | Polyunsaturated Fatty Pragmatics 🇺🇸 profil fotoğrafı
D T Dubs | Polyunsaturated Fatty Pragmatics 🇺🇸11 ay önce

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 profil fotoğrafı
emmo00.eth11 ay önce

@GODPIXELthereal

shaurya profil fotoğrafı
shaurya1 yıl önce

YOU MONSTER...

Ivan Bushmarinov profil fotoğrafı
Ivan Bushmarinov11 ay önce

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

『Llianen』🇵🇹 profil fotoğrafı
『Llianen』🇵🇹1 yıl önce

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 profil fotoğrafı
Hugh Hoult1 yıl önce

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

MartinJ profil fotoğrafı
MartinJ11 ay önce

Use a linter?

Benzer Videolar