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

That is indeed an interesting feature! I wish more languages implemented it!

In Python, of course, one argument against implementing it is that there already is the getattr magic method (and the getattribute one), so even if it'd be possible to implement UFCS without breaking changes, it would at least complicate the way attribute access works even further. But, of course, one could always introduce a new operator/token (instead of ".").



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

Search: