Support for java 11 syntax

Meh! :smile: btw, you still have more brackets than you need in your example - you don’t need brackets around the input argument if there’s only one.

While I don’t think your example can make use of it, the main benefit for Processing with lambdas IMO will be access to method references. eg. in your example, something like the HTimer callback if it didn’t pass in an Object could be written in one line as new HTimer(50).callback(pool::request); I think that’s more beginner friendly than lambdas, or Strings (eg. as in the thread method that I hate!)

1 Like