top | item 37518604

(no title)

pechay | 2 years ago

I don't like the side effects of the second addToppings. I'd much prefer

pizza.Toppings = getToppings(kind string)

discuss

order

mrkeen|2 years ago

> pizza.Toppings = getToppings(kind string)

That's a side effect.

pechay|2 years ago

pizza isn't, and can't be, opaquely modified by the topping adder this way.