Hacker News new | past | comments | ask | show | jobs | submit login
Cello: Higher Level Programming in C (github.com)
49 points by eatonphil 7 days ago | hide | past | web | favorite | 6 comments





Now this looks like an assortment of terrible hacks that I'd never want to use.

Good job though.


I am currently working on a compiler that emits C and have been looking for something along these lines.

I'll definitely look into this!


Very impressive! Especially the fact that it only uses macros (if I parse the website correctly).

It's not just macros. See the src directory https://github.com/orangeduck/Cello/tree/master/src

Ye. C++ used a preprocessor in it's early days.

Edit: I like this: "#define in ," to make "foreach(a in b)" loops.


for me this takes the fun out of C, however, it's pretty cool project full of neat tricks to learn form if you want to know what C can do or how to implement certain high level constructs in your own projects. good job!



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: