Apple is adding “blocks” (Smalltalk’s name for closures) to Objective-C. See mikeash.com: Friday Q&A 2008-12-26
This is very interesting, but raises a couple of questions in my mind.
Will it require automatic garbage-collection? I believe Apple has also added the option for automatic garbage-collection to Objective-C as well.
The bigger question, though, is after adding Smalltalkesque objects and message-passing, automatic garbage-collection, and Smalltalkesque closures to C, why aren’t you just using Smalltalk instead?
No comments:
Post a Comment