Hacker News new | ask | show | jobs
by WalterBright 1754 days ago
It is indeed dead simple :-)

The spec, the implementation, and using it. It's by far the simplest scheme I've ever seen proposed for C. You can see this from the article.

I suppose I could add it to D's ImportC:

https://dlang.org/spec/importc.html

even though ImportC's charter is to implement C11 as it stands and not fix anything.

But would the committee accept DasBetterC as an implementation?

https://dlang.org/spec/betterc.html

DasBetterC does implement the slices.

1 comments

We tend to accept anything that parses the C Standard - even only a part of it - as a viable implementation! For example, static analyzers are viable implementations of the standard, even if they don't produce code.

I think getting this feature into one other implementation and then writing a paper on it would help. Unfortunately, the cutoff for "new papers that must be submitted to be considered for C23" is October, so there's not a LOT of time, so we'd need to find a 2nd implementation quick-fast, and then write the proposal quick-fast too!