4 ms·
> The problem is backward compatibility with external linking because this expects another word on the call stack. It's completely compatible if you use the [.
by WalterBright 6y ago
> The problem is backward compatibility with external linking because this expects another word on the call stack.
It's completely compatible if you use the [..] syntax.
> performance/size penalties
For the proposed scheme, they are essentially non-existent. This is because the array bounds is usually already being passed as a separate argument.
Arrays that rely on a sentinel to determine the end (like 0-terminated strings) one can just not use the new syntax.