|
|
|
C2 language – now has library support and Windows support through Cygwin
|
|
5 points
by magnusi
3791 days ago
|
|
Hello, I know that C2, a C-like language by bvdberg, was shown here once before, but it was in much earlier stages of development. Now that one can use libraries it is possible to make "real" programs with it. Now in this stage, what is your quick opinion on C2, smart people of Hacker News? https://github.com/c2lang/c2compiler
https://c2lang.org/documentation |
|
[edits...]
I'm glad it has explicit integer sizes. I use C99 standard types often. I don't have much of an opinion on the explicit bool type although I hope it has a defined size.
I'm surprised it allows fall-through in a switch statement. I thought people hated C in that you needed a break keyword to prevent it.
It is interesting that its compiler is also the build system but I see that being a problem if you need to mix languages. For example: I have a Lua script I want to embed into my code. Doing this is simple with make and hard with every other build system.
Windows/Cygwin support means I will look at building this.