4 ms·
> I know people talk about python being Lisp without brackets What on earth?? Who are these people, this is the first I've heard of this and am having trouble
by sodapopcan 2y ago
> I know people talk about python being Lisp without brackets
What on earth?? Who are these people, this is the first I've heard of this and am having trouble understanding what the argument could be. Like, basically all languages get transformed to an AST as part of the compile step soooo I guess any language is sort of a lisp.
- jodrellblank 2y agoPeter Norvig: https://www.norvig.com/python-lisp.html https://www.norvig.com/python-lisp.html - "Basically, Python can be seen as a dialect of Lisp with "traditional" syntax (what Lisp people call "infix" or "m-lisp" syntax). One message on comp.lang.python said "I never understood why LISP was a good idea until I started playing with python." Python supports all of Lisp's essential features except macros, and you don't miss macros all that much because it does have eval, and operator overloading, and regular expression parsing, so some--but not all--of the use cases for macros are covered." "Take a Lisp program, indent it properly, and delete the opening parens at the start of lines and their matching close parens, and you end up with something that looks rather like a Python program." also Peter Norvig on HN: https://news.ycombinator.com/item?id=1803815 https://news.ycombinator.com/item?id=1803815
- sodapopcan 2y agoHa, fair enough. Thanks!