2 ms·
If code is data then in principle you could implement them as libraries rather than language extensions. I don't use lisp or haskell enough to know whether some
by sideshowb 9y ago
If code is data then in principle you could implement them as libraries rather than language extensions. I don't use lisp or haskell enough to know whether someone has already done this.
That said I'm also not convinced that it would help in many cases. What would you enforce about a wrapper for example other than it's constructed from one argument and returns a different type containing a reference to the original one? If you're not able to do that yourself then would a wrapper library really be any use?