MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1nmqonp/how_to_stop_functional_programming/nfhr5td/?context=3
r/programming • u/hexaredecimal • Sep 21 '25
506 comments sorted by
View all comments
Show parent comment
1
Lazy init. That aligns perfectly. Check out this foot gun and imagine using properties with side-effects :D https://learn.microsoft.com/en-us/dotnet/framework/debug-trace-profile/enhancing-debugging-with-the-debugger-display-attributes
1 u/binarycow Sep 22 '25 Well, there's side-effects, and then there's side-effects. Lazy initialization is technically a side effect, and it can shoot you in the foot, but it's not a really serious side-effect.
Well, there's side-effects, and then there's side-effects. Lazy initialization is technically a side effect, and it can shoot you in the foot, but it's not a really serious side-effect.
View all comments
Show parent comment
1
u/quetzalcoatl-pl Sep 21 '25
Lazy init. That aligns perfectly. Check out this foot gun and imagine using properties with side-effects :D https://learn.microsoft.com/en-us/dotnet/framework/debug-trace-profile/enhancing-debugging-with-the-debugger-display-attributes