-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Replace f0 type suffix with f, rename Rect types #97
Conversation
We are trying to clean up the whole |
That'd be amazing :-0 |
We should also properly deprecate the old names! |
I hadn't followed the developments on the @SimonDanisch indeed, proper deprecation was not (yet) in my PR. It's not clear though if it makes sense to keep this one, with the other changes going on in |
Cleanup is a much larger project, this one could be merged fairly quickly if you can open those PRs & we deprecate the old binding correctly ;) |
Hi, I have some time in the coming days to finish this 🙂 I've rebased the PR on master and added deprecation warnings for the old types. There's a corresponding Makie PR at MakieOrg/Makie.jl#1132. While we are at it, I propose to add the following renames to this PR:
This would be nice for internal consistency and is also easier to type, and consistent with what some other libraries do (see e.g. https://docs.opencv.org/3.4/dc/d84/group__core__basic.html). What do you think? |
@SimonDanisch I have added the Rect renames with deprecation warnings. For me this PR is ready. |
Awesome thank you! |
You're welcome! I've made the PRs to the closely related projects I could find. For other (third-party) projects I think it makes more sense to wait for new releases of GeometryBasics and Makie, so I can make PRs that work with the new versions. Let me know if there's anything else to do to get this merged! |
Thank you for all the effort! Lets merge this! |
@SimonDanisch was the 0.4.0 release supposed to include this? |
Lol, what happened here :-O Yeah, definitely 😅 |
This implements the change proposed in #61 . If the GeometryBasics maintainers are OK with this, I'll make PRs for all the dependents.
Update:
The renamed types are:
The following script can be used to refactor files automatically (it should work on Linux or other systems with GNU tools):
Typical usage is to run
./refactor-f0-Rect.sh *
to refactor the files (recursively) in a repository, then inspect the result withgit diff
(it's fairly reliable but might do unwanted replacements e.g. in binary files).