Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
riffraff
on Sept 8, 2014
|
parent
|
context
|
favorite
| on:
Swift – Why Annoying Is Good
FWIW, even Java allows something similar to 2, i.e. with Jackson
public class Point { public String x, y; } Point v = new ObjectMapper().readValue(io, Point.class);
It also works ok with Lists and Maps.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: