Conversation

Ooh, what magic is this `%runElab` thingy? How does it know about those user-defined data types you made in that gist? Does it verify that they're of the right 'shape' first, or is it more of a macro-style thing?
1
1
That's pretty much how it works. Reflection exposes that, so as long as the overhead is low (which it is) it seems a plausible way to implement the rest (e.g. records, interfaces, etc)
2
4
Show replies