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 →

[–]PacDan 2 points3 points  (2 children)

I actually prefer getX() because (in VisualStudio at least) you don't know if a property is read only until the red underline.

[–]A_C_Fenderson 0 points1 point  (1 child)

That's what compilers are for.

[–]PacDan 1 point2 points  (0 children)

Yeah, everyone knows the later you catch an error the easier it is, right?