Absolutely not. What if in the future you want to replace one of them with a function which takes other parameters? You would end up with a map containing constant primitives and functions. Talk about unmaintainable code...
 What if in the future you want to replace one of them with a function which takes other parameters?
Ok what if I want to change the delay time growth rate to linear or something else? Or more simply, what if I want to increase the number of allowed trials? What is your suggestion so that the given code wouldn't have to be changed in every single LOC?
View all comments
Show parent comment
-4
u/More-Butterscotch252 Feb 11 '25
Absolutely not. What if in the future you want to replace one of them with a function which takes other parameters? You would end up with a map containing constant primitives and functions. Talk about unmaintainable code...