[The Java Posse] Need to find the correct terminology for a pattern

2011-06-14 Thread Fabrizio Giudici
You have a service, which is about getting some data by a getData() method. Instead of synchronously returning the data, the method notifies (possibly later) a callback: service.getData(callback); The callback exposes these methods: public interface Callback { public void notifyNoData(

Re: [The Java Posse] Need to find the correct terminology for a pattern

2011-06-14 Thread Kevin Wright
On 14 June 2011 11:57, Fabrizio Giudici wrote: > You have a service, which is about getting some data by a getData() method. > Instead of synchronously returning the data, the method notifies (possibly > later) a callback: > > service.getData(callback); > > The callback exposes these methods: > >

Re: [The Java Posse] Need to find the correct terminology for a pattern

2011-06-14 Thread Fabrizio Giudici
On 06/14/2011 02:11 PM, Kevin Wright wrote: The current approach taken by Scala/C# is therefore reification of *delimited* continuations to stop you blowing the stack. This isn't exactly an easy thing to get right, hence the fact that it's a fairly recent arrival (the growing popularity of a