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

I assume you meant statically typed, rather than strongly typed.

Swift has this: var airports: [String: String] = ["TYO": "Tokyo", "DUB": "Dublin"]



:D Thanks for the correction

I like the swift example... Map<String, String> map = new HashMap<>(){"TYO": "Tokyo", "DUB": "Dublin"};




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: