4 ms·
> Rust, but better, and with simpler syntax without braces and semicolons and commas and with easier macros and... Makes me wonder: could there be a fully stat
by TeMPOraL 9y ago
> Rust, but better, and with simpler syntax without braces and semicolons and commas and with easier macros and...
Makes me wonder: could there be a fully statically typed variant of Lisp? Did anyone try that?
- Solarsail 9y agoWell, there is Shen. Static typing, I think it can do dependent typing... Doesn't have the affine types of Rust tho. Not sure how it works out to use in practice. Discussed here, for example: https://news.ycombinator.com/item?id=9297665 https://news.ycombinator.com/item?id=9297665
- flavio81 9y ago>Makes me wonder: could there be a fully statically typed variant of Lisp? Did anyone try that? FYI: Lisp already allows you to specify data types if you want, as if it were a statically typed language. If you do this, a good Lisp implementation, like SBCL, will then do static type checks and will also improve execution speed significantly -- with this plus other tricks, Lisp can approach Fortran and C speed.
- raattgift 9y agoThere is Typed Racket which has been under substantial development for many months now, with good results. https://docs.racket-lang.org/ts-guide/ https://docs.racket-lang.org/ts-guide/
- steveklabnik 9y agoThere's https://github.com/murarth/ketos https://github.com/murarth/ketos which is not exactly that but related