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

> sacrifices type safety

How does TH sacrifice type safety? The generated code is type checked.

For actually customizing syntax via macros, quasi quotation is the popular approach, combined with TH. People can eg embed JS or ObjC syntax fragments directly into Haskell this easy. http://www.haskell.org/ghc/docs/latest/html/users_guide/temp...



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

Search: