6

Smalltalk's become: is my favourite function (well, method) from any language. For those who haven't Smalltalked, here's a great description of it: https://gbracha.blogspot.co.uk/2009...

From a design perspective, what's not to like? You get to design your object graph in time as well as space, the state transitions of your objects become simple to represent.

It's also great for job security too ;)

Comments
  • 2
    That's pretty neat!
  • 2
    @dfox it is! One nifty use I've seen is Conway's Game of Life: at each iteration, a cell becomes its successor state. That Game of Life implementation had no conditional statements as a result.
Add Comment