{"action":"closed","issue":{"url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/20","repository_url":"https://api.github.com/repos/ajkeller34/Unitful.jl","labels_url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/20/comments","events_url":"https://api.github.com/repos/ajkeller34/Unitful.jl/issues/20/events","html_url":"https://github.com/ajkeller34/Unitful.jl/issues/20","id":177547610,"number":20,"title":"Add a method to `in` for convenient unit conversion?","user":{"login":"ajkeller34","id":7145721,"avatar_url":"https://avatars.githubusercontent.com/u/7145721?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkeller34","html_url":"https://github.com/ajkeller34","followers_url":"https://api.github.com/users/ajkeller34/followers","following_url":"https://api.github.com/users/ajkeller34/following{/other_user}","gists_url":"https://api.github.com/users/ajkeller34/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkeller34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkeller34/subscriptions","organizations_url":"https://api.github.com/users/ajkeller34/orgs","repos_url":"https://api.github.com/users/ajkeller34/repos","events_url":"https://api.github.com/users/ajkeller34/events{/privacy}","received_events_url":"https://api.github.com/users/ajkeller34/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ajkeller34/Unitful.jl/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-17T01:11:06Z","updated_at":"2016-09-23T19:20:04Z","closed_at":"2016-09-23T19:20:04Z","body":"```\r\njulia> import Base:in\r\n\r\njulia> in(x::Quantity, y::Unitful.Units) = uconvert(y,x)\r\nin (generic function with 28 methods)\r\n\r\njulia> 3u\"m\"\r\n3 m\r\n\r\njulia> ans in u\"cm\"\r\n300//1 cm\r\n```\r\n\r\nI'm not sure whether to encourage this sort of thing although it's awfully nice at the REPL."}}
{"actor":{"display_login":"ajkeller34"}}