4 ms·
Python's turtle graphics or Logo is good for this. Free Logos are available even today.
by fuzztester 3y ago
Python's turtle graphics or Logo is good for this.
Free Logos are available even today.
- zozbot234 3y agoLOGO is a great take on LISP-like languages overall, unfortunately it uses dynamic scope. Of course this only comes up in larger programs but I do wonder if anyone has made a lexically-scoped LOGO variant and what it might be like to teach coding in it.
- fuzztester 3y agoWhat is the difference between dynamic and lexical scope? And what are they? I googled it, but could not figure it out on a quick look, at least. #lazyweb
- trealira 3y agoDynamic scope means you that whoever last bound the variable at runtime determines its value, not whichever outer scope surrounds it. I guess it would be something like this in pseudo code: var dynamic = 5 function foo() { print(dynamic) } function bar() { var dynamic = 6 // foo() prints 6 due to the binding above foo() // After bar() exits, "dynamic" will go back to being 5 }