[Pharo-project] Optimisation / Simplification ...

James Ladd james_ladd at hotmail.com
Mon Jan 9 19:52:41 EST 2012



While implementing Redline Smalltalk it occurred to me that methods and blocks 
are the same things, making the use of blocks to represent methods a possible
optimisation or simplification to the internal of any Smalltalk implementation.

For example, 

at: key put: value
  <statements here>

Is not that different to:

at:put: [ :key :value | <statements here> ]

Just saying.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120110/da2e0087/attachment-0001.html>


More information about the Pharo-dev mailing list