I'm a Principal at ThoughtWorks, classical composer, and physics amateur.
A snippet of for-each syntatic sugar for Java loops:
for (final Person person : each (ALICE, BOB, CAT)) person.say("Hello!");
And elsewhere:
public static <T> T[] each(final T... array) { return array; }
Post a Comment
No comments:
Post a Comment