Skip to main content
39 votes
Accepted

Why is array access not an infix operator?

The answer to "why" questions is often partly historical - unless there is a good reason to be different, following existing conventions helps limit a new language's "strangeness budget&...
IMSoP's user avatar
  • 2,428
30 votes

Why is array access not an infix operator?

There are a couple of arguments in favour of the x[y] syntax for arrays, over an infix operator. One is that we want array access to bind the left operand more ...
kaya3's user avatar
  • 19.7k
20 votes

Why is array access not an infix operator?

it is, sometimes In Haskell, array access is the binary operator !!. In APL, one of the ways of doing array access is the dyadic function ...
RubenVerg's user avatar
  • 1,632
2 votes

Why is array access not an infix operator?

An single-dimensional array access is syntactically very similar to a single-argument function call; indeed, in some languages the syntax would be identical. The latter doesn't use any actual ...
supercat's user avatar
  • 1,812
1 vote

The static keyword and clarity in language design

With regard to the usage static to describe file-scope objects, it may be worth noting that some linkers allowed symbol definitions and references to be treated ...
supercat's user avatar
  • 1,812

Only top scored, non community-wiki answers of a minimum length are eligible