obj[‘a’]. Is that syntax transformed into an integer offset at run time or compile time or JIT? I guess what I’m trying to understand is how can it transform the incoming string ‘a’ into an integer index efficiently without doing something like
index = hash(‘a’) % objectLength.
Maybe the gap in my knowledge is I don’t fully get how structs work.