News for hackers. Stuff that matters.

IAmADHDToo

Re:A Defer Mechanism for C on Monday December 14, 2020 @03:02PM (#25422460)
> With a while loop, to know what happens at the bottom of the block, you only need to check the top of the block.

Anyway, what could possibly happen at the end of a while loop, besides going back to the begining for the test?

Besides, if you have a bug in your code, you will have to look at the whole block anyway.

Re:A Defer Mechanism for C on Monday December 14, 2020 @02:54PM (#25422363)
That's indeed tricky: if there's a for loop inside the guarded block which generates many defers, a stack would have to be created to handle them somehow.
Re:Why nullable types? on Tuesday December 08, 2020 @04:45AM (#25343501)
> I don't get it. These are literally all exactly the same thing, all slightly varying in ergonomics and compiler support. They may differ slightly but to call them two different categories of solution is just creating a false dichotomy for yourself.

Option types can be nested, nullable types cannot.