Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kibwen
on Jan 13, 2014
|
parent
|
context
|
favorite
| on:
The State of Rust 0.9
> JSON style literals for hash maps would be nice
I believe that we plan to use a macro to achieve this. After our planned enhancements to macro invocation syntax, it might look something like this:
let foo = map! { bar => "hello", qux => "world" };
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: