P.S. in case it wasn't obvious, addItem adds a newly constructed Menu object to a MenuBar, and this function returns the instance of the Menu for chaining. Thanks to `with` I can play with the newly constructed object without referring explicitly to its name.
On 4/4/11, Andrej Mitrovic <andrej.mitrov...@gmail.com> wrote: > I'm taking `with` to the extreme! > > http://codepad.org/dS97SDFS > > Using a foreach loop to construct anonymous objects, and using an > index to label them in their constructor. I also hook them up to the > dispatch function. Just how cool is that? >