Re:How Ruby Borrowed a Decades Old Idea From Lisp
by vidarh on Tuesday September 18, 2012 @10:52AM
(#4538363)
> In this post I wanted to go back as far in time as I could :)
Then you might want to look at Simula as well. As much as the term "object oriented" was invented in conjunction with Smalltalk, a lot of the basic concepts (classes, objects...) came from Simula (but not closures).
Re:How Ruby Borrowed a Decades Old Idea From Lisp
by mseepgood on Tuesday September 18, 2012 @01:47PM
(#4539487)
> but I didn't know it had a block/closure syntax also
Blocks are one of the most important concepts of Smallalk. Every control structure is done via blocks in Smalltalk, even if/else is a method (message) on a boolean object, that takes two blocks as arguments: one for the 'true' case and one for the 'false' case.
Re:How Ruby Borrowed a Decades Old Idea From Lisp
by munificent on Tuesday September 18, 2012 @12:35PM
(#4539004)
You should check out Smalltalk blocks. They are much closer to what Ruby has than Lisp-style closures are.
In this post I wanted to go back as far in time as I could :)