Y
Hacker News
new
|
ask
|
show
|
jobs
by
danellis
4268 days ago
Apart from pattern matching, your example isn't like duck typing: it's all entirely statically typed. Scala does have structural types, which is a bit like duck typing.