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. |
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But of course all string functions should also work on the "Content" property of the file. But a file is usally more than just a string. You have a FileName and maybe other functions which allow to process the file sequentially. You don't want to load the big files completely into the RAM.