
28 Mar
2013
28 Mar
'13
6:34 p.m.
David McBride
data JSValue = ... | JSObject (JSObject JSValue) | ...
Thank you! I think the two strange things as an outsider particularly from more OO languages are that types aren't objects, and then the strangeness of the naming convention. Would it have been legal to define data JSValue as something like this instead? data JSValue = JSValue | JSValue !Bool | JSValue !Rational | JSValue JSString | JSValue [JSValue] | JSValue (JSObject JSValue)