{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/5","labels_url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/5/comments","events_url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/5/events","html_url":"https://github.com/JuliaGraphics/Colors.jl/pull/5","id":102610161,"number":5,"title":"Second renaming, add Colorant string macro, drop Graphics dependency","user":{"login":"timholy","id":1525481,"avatar_url":"https://avatars.githubusercontent.com/u/1525481?v=3","gravatar_id":"","url":"https://api.github.com/users/timholy","html_url":"https://github.com/timholy","followers_url":"https://api.github.com/users/timholy/followers","following_url":"https://api.github.com/users/timholy/following{/other_user}","gists_url":"https://api.github.com/users/timholy/gists{/gist_id}","starred_url":"https://api.github.com/users/timholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timholy/subscriptions","organizations_url":"https://api.github.com/users/timholy/orgs","repos_url":"https://api.github.com/users/timholy/repos","events_url":"https://api.github.com/users/timholy/events{/privacy}","received_events_url":"https://api.github.com/users/timholy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-23T11:22:52Z","updated_at":"2015-08-23T17:29:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/pulls/5","html_url":"https://github.com/JuliaGraphics/Colors.jl/pull/5","diff_url":"https://github.com/JuliaGraphics/Colors.jl/pull/5.diff","patch_url":"https://github.com/JuliaGraphics/Colors.jl/pull/5.patch"},"body":"Probably the only thing to discuss is whether the literal string macro should be called `Colorant\"red\"` or `colorant\"red\"`. Since it also works for strings like `\"rgba(1,0,0,0.5)\"`, I'm just going to preemptively say that anyone who wishes it could be called `\"Color\"` or `\"color\"` is going to have to be extremely persuasive."},"comment":{"url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/comments/133880812","html_url":"https://github.com/JuliaGraphics/Colors.jl/pull/5#issuecomment-133880812","issue_url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/5","id":133880812,"user":{"login":"kmsquire","id":223250,"avatar_url":"https://avatars.githubusercontent.com/u/223250?v=3","gravatar_id":"","url":"https://api.github.com/users/kmsquire","html_url":"https://github.com/kmsquire","followers_url":"https://api.github.com/users/kmsquire/followers","following_url":"https://api.github.com/users/kmsquire/following{/other_user}","gists_url":"https://api.github.com/users/kmsquire/gists{/gist_id}","starred_url":"https://api.github.com/users/kmsquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmsquire/subscriptions","organizations_url":"https://api.github.com/users/kmsquire/orgs","repos_url":"https://api.github.com/users/kmsquire/repos","events_url":"https://api.github.com/users/kmsquire/events{/privacy}","received_events_url":"https://api.github.com/users/kmsquire/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T17:29:40Z","updated_at":"2015-08-23T17:29:40Z","body":"> But since the string macro converts it to an object that is a subtype of `Colorant`, this seems to be the `Int(x)` vs `int(x)` thing all over again---and base julia has gone with `Int(x)`. Can folks who prefer the lowercase please provide a little more justification?\r\n\r\n1. `colorant\"red\"` isn't a type constructor, so conventions that apply to type constructors don't really apply.  It does, of course, return an object which has a type, but so do many other `_str` macros, and only a few of those are capitalized.  `MIME`, for example, is an acronym (although I've seen it written in lower case as well).  Are there other capitalized `_str` macros?\r\n\r\n2. `Colorant\"red\"` certainly suggests that it produces something of type `Colorant`.  But the difference in usage between `Colorant_str` and `Colorant` is subtle, especially for someone just coming to the language.  Why can't I just write `Colorant(\"red\")`?  Alternatively, why doesn't `Integer\"234\"` work?  Since `Colorant\"red\"` is a distinctly different operation than `Colorant(a)` (ignoring that this call doesn't exist), why not make it obvious that it's a different operation?"}}