Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert dependency type from struct to tuple #46

Open
ishkawa opened this issue May 18, 2018 · 1 comment
Open

Convert dependency type from struct to tuple #46

ishkawa opened this issue May 18, 2018 · 1 comment

Comments

@ishkawa
Copy link
Owner

ishkawa commented May 18, 2018

Currently, dikitgen expects that Injectable.Dependency is declared as a struct.

Structs can have computed properties and methods, but the type elements are not related to declaring dependencies. I think Injectable.Dependencyshould focus on expressing dependencies, and the other works should be done by other components.

To encourage developers to focus on defining dependencies, I'm planning to convert Injectable.Dependency to tuple type.

@takasek
Copy link
Contributor

takasek commented Jun 7, 2018

Single dependency cannot be tuple type. Do you have any plan to represent it?

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

No branches or pull requests

2 participants