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

>Nothing beats D's ImportC

What does it offer over Zig's translate-c?



D does a pretty good job translating function-like macros, including creating lambdas out of macro expressions like:

    #define X 3+y
I haven't experimented with translate-c to see just what it does, I am going by the description of it which is a bit vague.

ImportC can also import D modules, so C code can access the D code.




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

Search: