Hacker News new | ask | show | jobs
by forlorn 33 days ago

  op describe {name, role} (
    print "user: " + name + " (" + role + ")";
  )
Strange choice of brackets usage
1 comments

But then the call makes more sense: `describe {role: "admin", name: "alice"};`
Precisely! Call sites should be traditional syntax shaped, pos args get [ and ] (trad array), and object shapes get trad obj syntax.