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

> 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.



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

Search: