Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  > 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: