|
|
|
|
|
by danprager
6302 days ago
|
|
Learning Scheme helped my Python by teaching me some new (to me) idioms, besides the first-class function stuff. For example, it is natural in Scheme to declare a lot of local information, including local function definitions. These have the great advantage of knowing about variables within the local environment. So rather than declaring an external function with heaps of parameters to pass in local state, you just declare a local function which automatically gets access to the variables in the surrounding scope. The same idiom works neatly in Python too, but didn't occur to me previously. * * * Also after learning Python and Scheme, Ruby felt a bit like a cross between the two, and quite comfortable. |
|
e.g.: