Re:Marvin Minsky – The beauty of the Lisp language
by vinceguidry on Wednesday December 11, 2013 @12:49PM
(#6889194)
You wouldn't want to modify the function in-place, that would violate immutability of data. Each of these closures would themselves be generated, by a factory method. When you're ready to modify, you'd invoke the factory to generate another closure, then you'd use whatever infrastructure you built to assign them in the first place to re-assign them to the new closures.
[ Parent
| on HN ]
Re:Marvin Minsky – The beauty of the Lisp language
by weland on Thursday December 12, 2013 @05:38AM
(#6893763)
Ah, got it. Thanks!
Re:Marvin Minsky – The beauty of the Lisp language
by vinceguidry on Thursday December 12, 2013 @12:45PM
(#6895779)
If you wanted to get really sophisticated, you could generate the factory methods, too.