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

Restricting phantom types #13

Open
kvark opened this issue Jun 9, 2017 · 1 comment
Open

Restricting phantom types #13

kvark opened this issue Jun 9, 2017 · 1 comment

Comments

@kvark
Copy link
Owner

kvark commented Jun 9, 2017

It feels a little bit weird that we can put any type in place of the second parameter of LeftQuaternion or EulerAngles. Perhaps, this is not a problem on mint side, since you can always abuse it if you really want to.

@Ralith
Copy link
Contributor

Ralith commented Jun 9, 2017

A (private?) trait might make the code clearer. On the other hand, mint types should most often be seen in concrete form in other interfaces, where this is not a concern.

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