Hi, I have tried to figure out whether ranges are including or excluding the upper bound in Zig, or if you can choose, but I was somewhat confused. After some research and testing, I came to the conclusion that:
forranges use..(two dots) and are always exclusive regarding the upper boundswitchranges use...(three dots) and are always inclusive regarding the upper bound
And you cannot use the two dot syntax in switch or the three dot syntax in for, right?
Sorry to ask, I just want to be sure I understand right.
P.S.: I forgot about slice indices (which seem to be like for ranges?).