Hacker News new | past | comments | ask | show | jobs | submit login

Too bad that the pure cpp code can't issue C actions which depend on results of previously issued actions. You can't implement cat in cpp+C, while you can in haskell.



> You can't implement cat in cpp+C

Yes you can.

I think that you missed the point of the article.

Just write a cpp macro that outputs a cat implementation in C.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: