szegedi / dynalink

Dynamic Linker Framework for Languages on the JVM
http://szegedi.github.com/dynalink/
BSD 3-Clause "New" or "Revised" License
206 stars 23 forks source link

DSL to Remove Most of the Boilerplate #8

Open sirinath opened 10 years ago

sirinath commented 10 years ago

Is it possible to have a DSL to remove most of the boiler plate.

szegedi commented 10 years ago

Could you give me an example of the boilerplate you'd like to remove?

sirinath commented 10 years ago

Having to deal with callsite methods handlers and evoking for simple use. Perhaps this can be hidden from the the user in simple scenarios.

szegedi commented 10 years ago

Still not sure what you have in mind - an actual code example of what you hope to eliminate would be handy. If you want a friendly API for method handle composition, check out https://github.com/headius/invokebinder.

sirinath commented 10 years ago

This looks close to what I had in mind. Is it built on top of this?

sirinath commented 10 years ago

I think you can make it more succinct than above.