grol-io / grol

Go REPL Open Language
https://grol.io
Apache License 2.0
22 stars 2 forks source link

Assignment to map keys and array indexes #182

Closed ldemailly closed 3 months ago

ldemailly commented 3 months ago

Fixes #16

ldemailly commented 3 months ago

You are only testing what is expected to work and not the possible error such as a[10+2]

a[10+2] is fine (it's a[12]) but if you mean out of bounds check, sure, though I was wondering if I should make them work at least in term of growing the arrays

ccoVeille commented 3 months ago

Yes, I'm thinking about out of bound, as 10 is not defined in you example of a with a few items.