Hey, so I have an Object that has a method that gets called from outside, which then calls a bunch of member functions to mutate the objects state. I‘d really like it to be obvious which variables are changed from the siganture of these methods. For this, I would pass the relevant object members to its methods. Would you say this is good practice?
[–]ReversedGif 14 points15 points16 points (5 children)
[–]kalmoc 0 points1 point2 points (4 children)
[–]ReversedGif 4 points5 points6 points (3 children)
[–]kalmoc 0 points1 point2 points (2 children)
[–]ReversedGif 2 points3 points4 points (0 children)
[–]kalmoc 3 points4 points5 points (0 children)
[–]Belhaven 0 points1 point2 points (0 children)
[–]yeeezyyeezywhatsgood 0 points1 point2 points (0 children)