dynalink icon indicating copy to clipboard operation
dynalink copied to clipboard

DSL to Remove Most of the Boilerplate

Open sirinath opened this issue 11 years ago • 5 comments

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

sirinath avatar Nov 26 '13 03:11 sirinath

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

szegedi avatar Nov 26 '13 16:11 szegedi

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

sirinath avatar Nov 27 '13 14:11 sirinath

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.

szegedi avatar Nov 27 '13 15:11 szegedi

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

sirinath avatar Nov 27 '13 16:11 sirinath

I think you can make it more succinct than above.

sirinath avatar Nov 28 '13 17:11 sirinath