I think it is not a good idea to support negative numbers in or [range]
For example, Julia uses [end-1] and Nim uses [^1] to avoid this.
I think it is not a good idea to support negative numbers in or [range]
For example, Julia uses [end-1] and Nim uses [^1] to avoid this.
So why do you think it’s not a good idea? What needs to be avoided?
So why do you think it’s not a good idea? What’s the reasoning for wanting to avoid it? Because other languages don’t support it?
I assume the idea of aiac is to catch possible errors for off-limits indices. That is, make -1 an error instead, so any mistake in calculations is caught, instead of working with a “”“unexpected”“” result.
Marked as solved. No other answers expected.