3 ms·
Genuine question, my impression is that Lisp is dynamically typed, but this uses type declarations. Would that make it different than Lisp?
by raiflip 9y ago
Genuine question, my impression is that Lisp is dynamically typed, but this uses type declarations. Would that make it different than Lisp?
- bjoli 9y agoLisp has strong typing, so 1 is 1, not "1" or #\1, which, unless mark has a built in way of annotating types doesn't give this any advantages over s-expressions.
- kazinator 9y agoLisp expressions also don't have any annoying type clutter that you have to have at every node in the syntax. Like (1 "1") is just a list of two things; we don't need the word "list" anywhere.
- kmill 9y agoDescriptions of typing are about as unevenly used as descriptions like "pass by reference." (So, practically useless.) In Lisps: - values have types (bool, symbol, number, list, array, structs, functions, ...) - variables have by default one type: union of all the above - in Common Lisp, you can restrict the types of values allowed in a variable > but this uses type declarations I must have missed this. If it's not just what struct-like entities are allowed in the markup, where did you see that?