Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Add reified types as kotlin parser extensions #295

Open
digitalbuddha opened this issue Nov 27, 2017 · 3 comments
Open

Add reified types as kotlin parser extensions #295

digitalbuddha opened this issue Nov 27, 2017 · 3 comments

Comments

@digitalbuddha
Copy link
Contributor

Currently the api for creating a middleware parser is clunky. When creating a parser one must pass both a generic of the type as well as a class token. With kotlin we can created a better version of the middleware parser factories which take advantage of reified types. This would allow a user to only have to pass a generic without needing to also need to pass in a Class

@bishiboosh
Copy link

@digitalbuddha would this be through replacing the current middleware classes, or via new middleware-*-kotlin packages ?

@digitalbuddha
Copy link
Contributor Author

Ideally new as to not be a breaking change

@bishiboosh
Copy link

I'll try to see if I can do a PR for that

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants