Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What alternative syntax exist for C/C++? (think SPECS or Mirah)

I wondered if there are any simpler or more powerful syntax for C or C++. I have already come across SPECS. That is an alternative syntax for C++. But are there any others and what about C?

It could also be a sort of code generator so that things like functors could be defined less verbosely. I imagine it could be made as a code generator that compiles to C or C++ code which is very similar to the code you wrote in the alternative syntax.

Mirah is an example of doing this for Java.

Ideally I would want to write C in Go like syntax. I like how they fixed switch-case, and in general made everything much less verbose.

like image 543
Erik Engheim Avatar asked Mar 24 '11 13:03

Erik Engheim


1 Answers

#define BEGIN {
#define END }

No! Just say NO!

like image 118
pmg Avatar answered Oct 05 '22 19:10

pmg