Re:Hackett – A Haskell-like language with support for Racket...
by jeremyjh on Saturday April 14, 2018 @04:03PM
(#16839168)
I don’t think Haskellers are against macros in general, but prefer Generic or GADT for tasks other languages might use macros for. Also Template Haskell sucks but we still have to use it sometimes which makes us bitter. I would welcome a hygenic, typed macro system like Hackett has.
[ Parent
| on HN ]
Re:Hackett – A Haskell-like language with support for Racket...
by bjoli on Sunday April 15, 2018 @05:22AM
(#16841953)
I have found the sentiment to be more "we don't need macros, we have a proper type system/laziness/whatever".
I know enough Haskell to know that many of the macros I would use in scheme aren't necessary, but it is not like the good parts of compile time code generation are completely negated.
Re:Hackett – A Haskell-like language with support for Racket...
by archgoon on Saturday April 14, 2018 @04:49PM
(#16839412)
What are the problems with Template Haskell?
Re:Hackett – A Haskell-like language with support for Racket...
by jeremyjh on Saturday April 14, 2018 @05:12PM
(#16839540)
As an author of Template Haskell the expression trees you build are not constrained by types (other than Exp); you won't see a type error due to a problem in a Template Haskell function until you try to use that function in another module, and it produces Haskell code that in turn does not compile.
As a user of Template Haskell functions you will mostly complain about the slow compilation time, the jarring syntax, poor documentation (since so much of Haskell documentation relies on types) and the error messages when you do something wrong.