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

Yes, for example F# has quotations, type expressions and type providers.

Also .NET has attributes, compiler plugins and expression trees, which allow to do some kind of similar stuff even for C#, although not as straightforward as in Lisp.

On the Java side, you also get the attributes (aka annotations), compiler plugins, AOP (yay CLOS interceptors).

Haskell has Template Haskell and OCaml has ppx extensions.



Those are so distant to what Lisp macros achieve. Also, I can't believe you brought up Java annotations in this discussion.


They are, but as they say back home, those who don't have dogs, hunt with cats.




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

Search: