MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1p8aebh/c/nr9ugng/?context=3
r/programminghorror • u/TheChief275 • Nov 27 '25
59 comments sorted by
View all comments
Show parent comment
1
Yeah, of course you can have whatever get and set logic you want. Or not even provide a setter and make the property read-only. I was thinking it would also create a private field with the same name of the property for you, but now I'm not sure.
View all comments
Show parent comment
1
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Nov 28 '25
Yeah, of course you can have whatever get and set logic you want. Or not even provide a setter and make the property read-only. I was thinking it would also create a private field with the same name of the property for you, but now I'm not sure.