3 ms·
I found Python's indentation style more appealing after working with Clojure for a while. Python is a bit like lisp without the parentheses. In fact you can Clo
by cutler 8y ago
I found Python's indentation style more appealing after working with Clojure for a while. Python is a bit like lisp without the parentheses. In fact you can Clojurify Python with Hy (http://hylang.org http://hylang.org) which solves both the indentation problem and the crippled lambdas problem.
- armitron 8y agoPython is nothing like Lisp, where did you come up with that? Three things that are key in Lisp: Symbols, environments and lexical scope. Python has none of these.
- lispm 8y agoPython reminds me more of an object-oriented BASIC. Mostly imperative control flow. Lots of assignments. Lots of state manipulation.
- kazinator 8y agoPerhaps the biggest computer science cluster-fuck in Python is that there is no syntactic distinction between instantiating/binding a variable and assigning to it. Python 3 makes it worse by adding some declarative stupidies nonlocal and global: https://en.wikipedia.org/wiki/Variable_shadowing#Python https://en.wikipedia.org/wiki/Variable_shadowing#Python
- kazinator 8y agoMost of the examples of Python program design that are held up as "Pythonic" can be described as Fortran with dynamic typing.