https://issues.dlang.org/show_bug.cgi?id=4791
--- Comment #5 from [email protected] --- (In reply to David Simcha from comment #2) > Yes, and this is a nightmare for generic code. A recent bug in my code (I have used a loop to avoid the overhead of calling the runtime function): void main() { int[3] a, b, c; foreach (immutable i; 0 .. a.length) c = a[i] + b[i]; } The correct foreach body is instead: c[i] = a[i] + b[i]; So I think there are disadvantages at not requiring a [] syntax for all array-wide operations. --
