4 ms·
Lovely post, though it's weird to end in saying that this "gave me a brief taste of functional programming" Turtle drawing is arguably the most non-functional,
by drcode 5y ago
Lovely post, though it's weird to end in saying that this "gave me a brief taste of functional programming"
Turtle drawing is arguably the most non-functional, stateful programming paradigm ever invented.
- Jtsummers 5y agoWell, they say that Logo gave them a taste of functional programming, which is a broader statement than turtle drawing (which, to be fair, is the bulk of the prior discussion). Logo was strongly influenced by Lisp and, consequently, is a multi-paradigm language including functional as one of its paradigms.
- jhbadger 5y agoLogo is more than the turtle -- Brian Harvey wrote a whole series of textbooks for Logo that really stressed the functional aspect of the language http://people.eecs.berkeley.edu/~bh/v1-toc2.html http://people.eecs.berkeley.edu/~bh/v1-toc2.html
- munchler 5y agoYou can think of it that way, but you can also think of a Logo program as a purely functional computation that follows the monad laws. Here's a Haskell package that implements it: https://github.com/aneilmac/worldturtle-haskell#readme https://github.com/aneilmac/worldturtle-haskell#readme