Remix.run Logo
jeffbee 4 hours ago

That is both really useful and a great example of why they should have stopped writing code in C decades ago. So many kernel bugs have arisen from people adding early returns without thinking about the cleanup functions, a problem that many other language platforms handle automatically on scope exit.

overfeed 3 hours ago | parent | next [-]

Must we do this on every thread about the Linux kernel?

RobRivera an hour ago | parent | next [-]

The beatings will continue until morale improves

richwater 3 hours ago | parent | prev [-]

[flagged]

tigen 2 hours ago | parent | prev | next [-]

This ought to help with that. https://thephd.dev/c2y-the-defer-technical-specification-its...

nurettin an hour ago | parent | prev [-]

> stopped writing code in C decades ago.

And what were they supposed to use in 2006? Free Pascal? Ada?

greenavocado an hour ago | parent [-]

Someone suggested C++ and you should see the response from Linus

https://harmful.cat-v.org/software/c++/linus