Re:SBCL: The Ultimate Assembly Code Breadboard
by xenophonf on Monday March 17, 2014 @03:20PM
(#7417393)
Common Lisp already features strong static typing (the example below uses SBCL):
One could also declare the function signature first (perhaps in skeleton code generated by modelling tools). Then, if someone implements it incorrectly, the compiler will throw an error (again, SBCL):
So, what else do you think Common Lisp lacks compare to more "modern" languages? ;)
[ Parent
| on HN ]
That's nice. What type system is that? Does it support eg parametricity?
Re:SBCL: The Ultimate Assembly Code Breadboard
by xenophonf on Tuesday March 18, 2014 @08:01AM
(#7421373)
That's the standard type system in Common Lisp.
As for whether Common Lisp supports parametricity, I don't know. It might be one of those things that isn't difficult to implement on your own, like design-by-contract or AMOP.