Discussion on question by phuclv: Why did Visual Basic use parentheses for both function call and array access?

Discussion on question by phuclv: Why

Imported from a comment discussion on https://retrocomputing.stackexchange.com/questions/19711/why-did-visual-basic-use-parentheses-for-both-function-call-and-array-access
1552d ago – Barmar
16
2

export all events for this room

Starred posts

Apr 30, 2021 17:56
Arrays, functions, dictionaries — those are all mappings from input (argument/index/key) to some output. So it's natural to pass the input in the same way. The real question would be why so many languages have a separate syntax for passing arguments to arrays.