-
Notifications
You must be signed in to change notification settings - Fork 47
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
[RFC] Re-support of original X11 color names #386
Comments
Sorry I failed to notice this had changed when I reviewed #360. The kindest option is to issue a deprecation warning. If you are ambitious you can do that with a 0.10.1 and 0.11.1 release (you'll need to create some branches and use git-cherry-pick). I won't have time to help due to travel, unfortunately. |
I'm sorry, but I didn't think this would be a problem. I was wrong. I think the deprecation warning is useful only when there are alternatives. For the users who want the traditional names with spaces, the names without spaces should not be alternatives. Unfortunately, I realized that #374, which designed in anticipation of the parser changes (cf. #359 (comment)), was not so useful.:sob: |
Perhaps we have four choices.
I prefer to re-support the traditional colors rather than add warnings. However, we need to be desperately aware that when we support somethings, it will be awkward to break them. Edit: |
Generally, option 1/2 looks more reasonable to me, but since I don't use this package directly, this is just some random jump-in comment.
I think the core idea here is to let non-breaking changes(i.e., patch version) pass through the compat limitation silently and for every breaking changes manually check if repositories are affected. This was a heavy workload for the maintainers before the availability of CompatHelper so we didn't adhere to this "principle". But since CompatHelper watches the changes and raises a notification to all repositories that might be affected by that, it becomes possible to take this "principle" into practice even if it's only a few of us now. Yes, it's some kind of annoying. But what we can expect is when codes become stable, there will be less breaking changes at the root of the dependency chain (e.g., ColorTypes.jl). And it's useful in practice, for example, JuliaImages/ImageCore.jl#107 absorbs the depwarn raised by ColorTypes so that downstream packages won't get the warning. Of course, this "explanation" is also very personal. |
I think all options are valid since Colors.jl is v0. However, if Colors.jl was v1.0 or later, we would have to bump the major version up. My concern is already in the FAQ. |
Yes, this can be interpreted as a bug or just some undefined behaviors; people treat this differently -- some fixes it and some don't. If you're blaming yourself on making this "mistake", which is not, then please don't. What's more important in "rapid development" in my own view is that the overall quality and functionality of the codebase becomes better with your efforts in. Since you're one of the main maintainers at present, we have great trust in your decision <-- someone said this to me when I was new to this community :D The fact is nobody pays you to write codes here, and we're contributing under MIT license, so... just don't be so nervous about "bug reports". As I said, my comment can be regarded as some random noise, it's more important that you make your choice with your full consciousness and you take the responsibility of any following consequences(be proud of it or make more efforts to it). Well, it's off-topic, but I hope this makes you feel better ❤️ It's a long journey and take it easy. |
I prefer your first choice, "Add the deprecation warning to color parser and release v0.10.1 and v0.11.1". I don't really like #388. Can't we just strip spaces from the string, while issuing a warning? One general comment: IMO (and it's just an opinion) it's better to fix unintended breakages fairly quickly, so it would have been best if you'd just made a decision & run with it than to wait a couple weeks for input from others. |
We cannot do it strictly. Let's make it loose. 😄 Edit: |
I ended support for parsing some X11 color names which conflict with the SVG/CSS specification (e.g. "deep sky blue") in PR #360. However, some users or packages use them.
cf. GiovineItalia/Gadfly.jl#1368
I don't think it's a good idea to use the old synonyms in modern times because it goes against the intention of standardization (formalization) of the SVG/CSS color.
Moreover, in the past, it seems that there is a case where the aliases with spaces have been deleted.
https://web.archive.org/web/20070928030522/http://cvsweb.xfree86.org/cvsweb/xc/programs/rgb/rgb.txt.diff?r1=1.2&r2=1.1
However, I would not object to someone adding them to
color_names
.I'm against the removal (neglect) of all spaces. (e.g. "p ink"->"pink")
The text was updated successfully, but these errors were encountered: