3 ms·
Also worthwhile mentioning is functionalC [0]. The blog mentioned on the Github page is down but the relevant URLs can be accessed from the wayback machine at
by 0xmohit 10y ago
Also worthwhile mentioning is functionalC [0].
The blog mentioned on the Github page is down but the relevant URLs can be accessed from the wayback machine at [1] and [2].
GCC also supports nested functions [3] (as a GNU C extension).
Unrelated, but [4] specifies a pure C implementation of Go channels and libmill [5] is a library that introduces Go-style concurrency to C.
[0] https://github.com/cioc/functionalC https://github.com/cioc/functionalC
[1] https://web.archive.org/web/20160406001106/http://blog.charlescary.com/?p=95 https://web.archive.org/web/20160406001106/http://blog.charl...
[2] https://web.archive.org/web/20160304120857/http://blog.charlescary.com/?p=150 https://web.archive.org/web/20160304120857/http://blog.charl...
[3] http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
[4] https://github.com/tylertreat/chan https://github.com/tylertreat/chan
[5] https://github.com/sustrik/libmill https://github.com/sustrik/libmill
- rabz 10y agoI'll piggyback on your comment to add another functional version of C to the discussion, Single Assignment C. http://www.sac-home.org http://www.sac-home.org http://en.wikipedia.org/wiki/Single_Assignment_C http://en.wikipedia.org/wiki/Single_Assignment_C