ZiglioUK / construct

A Java version of "Construct" a python library for parsing and building of data structures (binary or textual)
MIT License
25 stars 5 forks source link

Cleaner Syntax for Lambdas #3

Closed ZiglioUK closed 6 years ago

ZiglioUK commented 12 years ago

I've come across FxGraph: http://efxclipse.org/fxgraph.html It shows how a nicer JSON like syntax is possible, without recurring to all those static methods that are not really the Java way.

Unfortunately there's no better syntax for Lambdas, ugly anonymous classes are still used for controllers. If there's a way to simplify the syntax of lambdas without having to import huge libraries (lambdaj), or switching to another language (Groovy, Scala), or having to wait for 10 years for Java 9, please let me know!

ZiglioUK commented 12 years ago

https://github.com/ZiglioNZ/construct/commit/eb5c9d2b4d73d6fe55e6e926e6b5d5706aaacd29

https://github.com/ZiglioNZ/construct/commit/ae5aff70a46e118aa0afd0e8cd8efb446a35425b