It makes the code icky and hard to debug, and you can simply return new immutable objects for every state change.

EDIT: why not just create a new object and reassign variable to point to the new object

  • Pup Biru
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 hours ago

    strings? ints? floats, arrays, HASHMAPS? so inefficient… just directly access memory!!!