Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ufo
on Jan 15, 2013
|
parent
|
context
|
favorite
| on:
John Carmack's comment on Doom 3's code style
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.
Luyt
on Jan 15, 2013
[–]
C++Builder and Delphi offer this too, with the '__property' declarator.
zanny
on Jan 15, 2013
|
parent
[–]
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: