-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Rename Point3f0 and similar to Point3f, etc. #61
Comments
As one of the beginners in questions, I fully agree. In the C++ world, you will find almost exclusively Point3f, Vector3f, etc. notation. For different element types, you will see: Point3d, Point3i, etc. The first thing I did after seeing
|
I wouldn't mind in general - but I would mind the work to refactor this and properly get rid of it in all dependencies :D |
How about an official |
@SimonDanisch I can imagine it would be a lot of work, especially with all the dependent projects. Of course if the change is desired, it's better to do it as soon as possible. I would be happy to help with the refactoring (I could work on PRs in the coming weeks if there's interest). @pauljurczak I'd rather not have both, it introduces another kind of confusion. But I guess we would have an alias during a deprecation period. |
I can't imagine this would be so much work, after all, it's a prime candidate for a simple search and replace, no? Of course tagging the versions would be a bit of work. I like the idea of a rename, especially because we would match the conventional naming, and we should do things like this earlier rather than later. |
Yeah, its not a crazy amount! I mainly meant to say, that I won't do it in the little time i have, but if someone is willing to, they're free to open a PR to the dependent packages :) |
I think a depwarn release of GeometryBasics + a replace in dependent packages should be sufficient. Here's the list of all (direct and indirect) dependent packages:
(from JuliaHub) |
@jkrumbiegel it would take a bit more care at least in GeometryBasics since the type names are macro-generated, but that might make it even easier... So yeah I guess most of the work would be in filing PRs for the different packages. I think I could do it some time this month. |
(Oops I was a bit fast, it's not merged yet.) |
I'd like to make a case against the suffix
0
in types such asPoint3f0
:1.2f0
, thef
denotesFloat32
and0
is an exponent.1.2f4
is also a Float32.Is there a reason to prefer Point3f0?
The text was updated successfully, but these errors were encountered: