Y
Hacker News
new
|
ask
|
show
|
jobs
by
lmm
4367 days ago
> Have to make an explicit cast with a structural type? Surely you can do better, like, say, a trait.
Usually, yes. But the only way that's as general as the Python line is to use the structural type.