Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've really wanted that in C for a long time. It seems like a very trivial thing as well.


Yeah, it's actually easy to implement, too.

It replaces the preprocesser:

    #define Q abc.T
with hygiene. Once you get used to it, it has all kinds of nice uses.


C++ code generally uses `using` for typedefs. Macro-based typedefs are exceptionally rare and frowned upon.




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

Search: