Re:Mark – A simple and unified notation for both object and ...
by raiflip on Monday February 05, 2018 @11:21AM
(#16309757)
Genuine question, my impression is that Lisp is dynamically typed, but this uses type declarations. Would that make it different than Lisp?
[ Parent
| on HN ]
Re:Mark – A simple and unified notation for both object and ...
by kmill on Monday February 05, 2018 @02:31PM
(#16311325)
Descriptions 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?
Re:Mark – A simple and unified notation for both object and ...
by bjoli on Monday February 05, 2018 @11:33AM
(#16309864)
Lisp 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.
Re:Mark – A simple and unified notation for both object and ...
by kazinator on Monday February 05, 2018 @06:29PM
(#16313224)
Lisp 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.