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

Precisely. The real reason Python gets this right is that it the properties feature lets you write `obj.foo` but still call a `getFoo` method behind the scenes.


C++Builder and Delphi offer this too, with the '__property' declarator.


As someone who writes C++ regularly, I would love to see something like __property introduced in C++15.




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

Search: