Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

85,672 Aufrufe • vor 1 Jahr •via X (Twitter)

36 Kommentare

Profilbild von Тsфdiиg
Тsфdiиgvor 1 Jahr

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

Profilbild von Dinam
Dinamvor 1 Jahr

Bro is trying to turn C to JavaScript

Profilbild von learntToCode
learntToCodevor 1 Jahr

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

Profilbild von Parth
Parthvor 1 Jahr

Okay now remove { } and boom it's Python

Profilbild von Noga Navon🏳️‍⚧️ الزهرة الحكيمة נוגה נבון
Noga Navon🏳️‍⚧️ الزهرة الحكيمة נוגה נבוןvor 1 Jahr

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.

Profilbild von Тsфdiиg
Тsфdiиgvor 1 Jahr

Pascal my beloved

Profilbild von Pehdrew
Pehdrewvor 1 Jahr

I'll use ; more in python.

Profilbild von ⃠ emojibake
⃠ emojibakevor 1 Jahr

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

Profilbild von vitorpy
vitorpyvor 1 Jahr

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

Profilbild von Samyar 🌌
Samyar 🌌vor 11 Monaten

“Let’s recompile the compiler”

Profilbild von ozzyalone
ozzyalonevor 1 Jahr

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.

Profilbild von sukru tikves
sukru tikvesvor 1 Jahr

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

Profilbild von allisx86
allisx86vor 1 Jahr

C-emi colon

Profilbild von Alexey Lyakhov
Alexey Lyakhovvor 1 Jahr

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.

Profilbild von Felipe Rocha⚣⚔️🇻🇦#voltaGLS
Felipe Rocha⚣⚔️🇻🇦#voltaGLSvor 1 Jahr

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

Profilbild von Paweł Zegartowski 👾
Paweł Zegartowski 👾vor 1 Jahr

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

Profilbild von Svetlin Totev
Svetlin Totevvor 1 Jahr

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

Profilbild von 11revert
11revertvor 1 Jahr

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

Profilbild von beter
betervor 1 Jahr

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

Profilbild von lothro12
lothro12vor 1 Jahr

now make a python compiler that expects semicolons

Profilbild von sorek
sorekvor 1 Jahr

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

Profilbild von Rafael Coelho
Rafael Coelhovor 1 Jahr

why?

Profilbild von Тsфdiиg
Тsфdiиgvor 1 Jahr

why not?

Profilbild von term est 🍓TRY AND STOP ME 🏳️‍⚧️
term est 🍓TRY AND STOP ME 🏳️‍⚧️vor 1 Jahr

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(); }

Profilbild von Тsфdiиg
Тsфdiиgvor 1 Jahr

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

Profilbild von Pere
Perevor 1 Jahr

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

Profilbild von Nephew Tom
Nephew Tomvor 11 Monaten

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

Profilbild von Tiago AOA
Tiago AOAvor 1 Jahr

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.

Profilbild von Raindrop
Raindropvor 1 Jahr

😨😨

Profilbild von D T Dubs | Polyunsaturated Fatty Pragmatics 🇺🇸
D T Dubs | Polyunsaturated Fatty Pragmatics 🇺🇸vor 11 Monaten

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.

Profilbild von emmo00.eth
emmo00.ethvor 11 Monaten

@GODPIXELthereal

Profilbild von shaurya
shauryavor 1 Jahr

YOU MONSTER...

Profilbild von Ivan Bushmarinov
Ivan Bushmarinovvor 11 Monaten

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

Profilbild von 『Llianen』🇵🇹
『Llianen』🇵🇹vor 1 Jahr

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

Profilbild von Hugh Hoult
Hugh Houltvor 1 Jahr

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

Profilbild von MartinJ
MartinJvor 11 Monaten

Use a linter?

Ähnliche Videos