Last active
December 25, 2015 11:49
-
-
Save lanwin/6971441 to your computer and use it in GitHub Desktop.
Less types and more functions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As lisp programmers have know for a long time it is better to have a smallish number of ubiquitous data types and a large number of small functions that work on them, than to have a large number of data types and a small number of functions that work on them. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But in order to understand the statement keep in mind Lisp has no strong typing.
All Lisp functions should work on the generic data types like array, map,...
If you look at ML, F# or haskell then you'll see that you can have both. You can define generic functions which work on complicated data structures and keep the types distinguishable.