A pure function can even change data member's value?

i think that promise is from the developer not the function haha

you can do it but generally shouldnt as it may cause bugs

1 Like