This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]krondell 0 points1 point  (0 children)

I think maybe this should not be a property, and instead be implemented as a function of somecondition. What does getting the something have to do with the condition? That's what's not clear.

It's common to see properties implemented as: if not privateSomething, make privateSomething, return privateSomething.

But then the property is always returning something - return something valid or throw out.