John Mount definitely quotes Dr. Ian Malcolm correctly in this one:
How about defining a new
[
-based function call notation? The ideas is: we could writesin[5]
in place ofsin(5)
, thus unifying the notations for function call and array access. Some languages do in fact have unified function call and array access (though often using “(
” for both). Examples languages include Fortran and Matlab.Let’s add R to the list of such languages.
I love the flexibility in the language, almost as much as I would enjoy taking away production rights from the person who ships this in my code base…
Comments closed