Re:Tell HN: C Experts Panel – Ask us anything about C
by JoshTriplett on Tuesday April 14, 2020 @12:11PM
(#22867697)
What are the chances of typeof, or statement expressions, finding their way into the C standard? They're already widely implemented.
[ Parent
| on HN ]
Re:Tell HN: C Experts Panel – Ask us anything about C
by msebor on Tuesday April 14, 2020 @03:20PM
(#22870289)
Several of us discussed typeof and I'd expect a proposal for a feature along these lines to be well received. (I recall someone even saying they're working on one but that shouldn't stop anyone from submitting one of their own.)
Re:Tell HN: C Experts Panel – Ask us anything about C
by JoshTriplett on Tuesday April 14, 2020 @03:22PM
(#22870305)
I'm glad to hear that.
What about statement expressions? They're quite useful, and supported by multiple independent compilers.
Re:Tell HN: C Experts Panel – Ask us anything about C
by msebor on Tuesday April 14, 2020 @03:54PM
(#22870666)
I'm not aware of recent proposals for those but we have discussed ideas along those lines (closures: N2030, C++ lambdas, Apple Blocks: N1451, and I think there was one from Cilk). I think there was interest but not enough support for the details and likely also concerns from implementers.