Control Invocation Syntax++

Mark Mahieu markmahieu at googlemail.com
Fri Dec 18 07:05:49 PST 2009


It's a fascinating area to investigate.  I once built a 'foreach...where...orderBy' construct using BGGA:

List<String> words = ...
ExecutorService executor = ...

for each (String word : words)
    where  (word.contains("e") || word.contains("o"))
    orderBy (word.toLowerCase())
    selectAsync (Integer calculatedValue : slowCalculation(word), executor) {

        // ...
}

Very awkward implementation, and a bunch of other limitations, but interesting to experiment with.

Mark


On 18 Dec 2009, at 14:30, Stefan Schulz wrote:

> Peter,
> 
> Coin will not accept new proposals, as Joe lately said again.
> But you might be interested in a little blog post of mine from some years ago:
> http://jroller.com/jadda/entry/multipiece_method_names
> 
> Cheers,
> Stefan
> 
> Peter Levart:
>> I have written a draft of a proposal that would fit the "Coin". I'm
>> posting it here first to discuss if it has the potential to be a
>> valuable addition to Java syntax also and in particular in relation
>> to enabling "Control Invocation Syntax" as specified in CfJ 0.6b to
>> be extended with additional ability.
>> 
>> See the attached HTML...
>> 
>> Peter



More information about the closures-dev mailing list