[LRUG] Continuations

Eleanor eleanor at goth-chic.org
Thu Mar 15 09:37:00 PDT 2007


On 15 Mar 2007, at 09:33, Piers Cawley wrote:
> So, on the train back on Wednesday I thought of a way of explaining
> continuations. This morning, I finally wrote it up as a blog post:
>
> http://www.bofh.org.uk/articles/2007/03/15/the-commenting-problem

Funnily enough I've recently been chatting on the Unicon mailing list  
about some of the features of (Un)Icon that I miss in Ruby. The most  
significant of these is an expressive syntax for goal-direction/back- 
tracking (i.e. continuations). Callcc provides the basic facility,  
but in Icon you have co-routines, proper generators that suspend,  
generalised expression failure, back-tracking and... well lots of  
stuff that would make an excellent addition to Ruby - or at least a  
handy DSL.

I know many of these things can be done in Ruby, but there's nothing  
quite as pleasant as having the details taken care of by the language  
itself :)


Ellie

Eleanor McHugh
Games With Brains
----
raise ArgumentError unless @reality.responds_to? :reason




More information about the Chat mailing list