Remix.run Logo
uecker 2 hours ago

IMHO, it is in the best interest of your students to teach them standard C first.

thayne 2 hours ago | parent | next [-]

There is a technical specification, so hopefully it will be standard C in the next version. And given that gcc and clang already have implementatians (and gcc has had a way to do it for a long time, although the syntax is quite different).

uecker 2 hours ago | parent [-]

It is not yet a technical specification, just a draft for one, but this will hopefully change this year, and the defer patch has not been merged into GCC yet. So I guess it will become part of C at some point if experience with it is good, but at this time it is an extension.

gignico 2 hours ago | parent | prev [-]

I was under the wrong assumption that defer was approved for the next standard already.

uecker 44 minutes ago | parent [-]

We will likely decide in March that it will became an ISO TS. Given the simplicity of the feature and its popularity, I would assume that it will become part of the standard eventually.