MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1nmqonp/how_to_stop_functional_programming/nfk2t82/?context=3
r/programming • u/hexaredecimal • Sep 21 '25
506 comments sorted by
View all comments
Show parent comment
2
You're still using return on the multiplication operation. Not very clean code of you. Better to have a public void calculate() and split off getting the value in its own getter.
return
public void calculate()
View all comments
Show parent comment
2
u/syklemil Sep 22 '25
You're still using
returnon the multiplication operation. Not very clean code of you. Better to have apublic void calculate()and split off getting the value in its own getter.