by jez · 3y ago · 0 comments
Obviously I understand that if this is the limitation, then there are ways to work around this, and it all depends on how annoying the workarounds are.
But I’m curious is there a trick that allows it. All the tricks I can think of involve boxing the the ASTs you’re about to store in the list (which then come with memory/performance hits), and I’d love to be proven wrong.
That way if you have a type Expr a, you can have a list type [Some Expr].
You can even have HLists but then you are also pretty far along the Ivory tower. I don't think that's worth it.