Jeremy Rayner on java and other stuff.

All | AudioDrama | Chatter | Fun | Groovy | Java | Life

Some more Groovy notes
Posted on 17 Nov 2004
Here are some more notes from GC1 (Groovy Conference no.1), some of them might be inaccurate, subsequently changed or just plain wrong, but I might as well share what notes I did take...

Ideas for the specification

whitespace is significant, but it is significant as it applies to 'no dumb expression statement (NDES)' rule

macros are going to be implemented under the covers, but may not be exposed to user in first syntax spec, indeed 'while' might even be implemented as a macro under the covers...

builders have turned into lovely things :-) builders are now intended to be included within the EBNF this seems to have been achieved by changing the words around :-)

with (MyBuilder) { myPanel { myThing }}
or something

parens are optional, but again before you leave the planet... only on simple statements, not on expressions

escaping nested closures?
escaping nested closures involved break / return keywords break without label would break out of tightest closure break with label would treat closure just like while statement break (+ same with continue) return would always return from the method (that the closure was called from?) not sure I remember discussions about breaking with a value..?

I have published jstrachan's scribblings here

here are a few of my favourite things...

'with' keyword

with { wibble = 12; wobble = 13}
equiv to... = 12;;
and reused for builder syntax
with myFoo { bar { mooky {new Weeble()}}}
(syntax probably not quite like that)

'?.' operator

equiv to
(foo != null) ? : null
the question mark indicates that foo is questionable, i.e. it could be null, it could be any type etc... (i.e. no compile time errors if property bar doesn't exist on foo)

Anyway, just gives you an idea of some of the topics under discussion, none of it is set in stone. Look forward to comments :-)

17 Nov 2004 |


November 2004
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Prev | Today | Next

rss:subscribe (All)

What I'm reading
my feed aggregator ->box

My websites
London Java Meetups
Programming Projects
Elite in Java
Jez's Photos
Fantasy Stock Market
Cool Saxophonist
Doctor Who Audios
Pisces Audios

Other Blogs
Mike Cannon-Brookes
James Strachan
Joe Walnes
Sam Dalton
Simon Brown
Cameron Purdy
Mike Roberts
Erik C. Thauvin
John Martin
Manfred Riem

B5 d++ t++ k s+ u- f
i+ o+ x-- e+ l- c--

powered by blogmento