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

Some functions should probably be const #98

Open
giannitedesco opened this issue Dec 29, 2024 · 2 comments
Open

Some functions should probably be const #98

giannitedesco opened this issue Dec 29, 2024 · 2 comments

Comments

@giannitedesco
Copy link

Lots of methods could be const, particularly constructors, and conversions from column/row oriented and back.

That way you can have static/const vectors/matrices etc..

@yoanlcq
Copy link
Owner

yoanlcq commented Dec 30, 2024

There was a discussion on this in #12 , you may want to search for The only function I've been able to make const was new() for vectors in that thread.

Then again, that may be outdated. It's been a few years...

@giannitedesco
Copy link
Author

Yeah pretty sure it is, I can't see why broadcast, conversions, maps, casts, the like can't all be const

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