{"action":"closed","issue":{"url":"https://api.github.com/repos/mauro3/Parameters.jl/issues/17","repository_url":"https://api.github.com/repos/mauro3/Parameters.jl","labels_url":"https://api.github.com/repos/mauro3/Parameters.jl/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/mauro3/Parameters.jl/issues/17/comments","events_url":"https://api.github.com/repos/mauro3/Parameters.jl/issues/17/events","html_url":"https://github.com/mauro3/Parameters.jl/issues/17","id":177037724,"number":17,"title":"Create Parameter type without specifying a name","user":{"login":"ChrisRackauckas","id":1814174,"avatar_url":"https://avatars.githubusercontent.com/u/1814174?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisRackauckas","html_url":"https://github.com/ChrisRackauckas","followers_url":"https://api.github.com/users/ChrisRackauckas/followers","following_url":"https://api.github.com/users/ChrisRackauckas/following{/other_user}","gists_url":"https://api.github.com/users/ChrisRackauckas/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisRackauckas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisRackauckas/subscriptions","organizations_url":"https://api.github.com/users/ChrisRackauckas/orgs","repos_url":"https://api.github.com/users/ChrisRackauckas/repos","events_url":"https://api.github.com/users/ChrisRackauckas/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisRackauckas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-14T22:22:17Z","updated_at":"2016-11-19T00:36:15Z","closed_at":"2016-11-19T00:36:15Z","body":"It would be nice to be able to do:\n\n``` julia\np = @with_kw type # could also be immutable\n    a::Int = 6\n    b::Float64 = -1.1\n    c::UInt8\nend\n```\n\nand have it silently create a parameter type and return and instance of that type. The tool for doing this is described here: http://stackoverflow.com/questions/39485715/julia-design-silently-defining-naming-types-in-macros/39493415?noredirect=1#comment66311481_39493415. This could be helpful when all you care about is getting a type for its fields, but don't plan on making it again (and it's easier than coming up with arbitrary names all the time).\n"}}
{"actor":{"display_login":"ChrisRackauckas"}}