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

Strong type idiom for algebra types #161

Open
hatcat opened this issue Jan 31, 2018 · 1 comment
Open

Strong type idiom for algebra types #161

hatcat opened this issue Jan 31, 2018 · 1 comment

Comments

@hatcat
Copy link
Collaborator

hatcat commented Jan 31, 2018

Given that we're using basic_point_2d for position, vector and size, does it make sense to use strong types instead?

https://www.fluentcpp.com/2016/12/08/strong-types-for-strong-interfaces/

@FredTingaud
Copy link

I am a huge fan of strong types.
But in the case of vector, size and position, I think you often need to add one with the other. How would you manipulate them and make the result type clear?

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