8
inaba
6y

Shower thought: Most variables don't actually vary

Comments
  • 2
    What kind of programs do you write?
  • 1
    @daintycode Ones where most of my variables are assignments 😂
  • 1
    @daintycode these are the best variables. Just used to symbolize values, like in mathematics.
  • 1
    @inaba @kpenc not a fan of mutation either, but mostly there's some change to most of them. Even if it is only by an ui control to change it anytime.^^
  • 1
    As long as you value their values all is fine
  • 1
    my shower thought on this:

    doesn't it cost more resources/ticks to have checks for the constancy, and therefore the accesses to variables, then having non-constant ones?
  • 1
    @daintycode yo dawg, const is a compiler thing.

    k, thanks.
Add Comment