Skip to content

R is GNU S, not C.... [was "how to get or store ....."]

1 message · Liaw, Andy

#
From: Martin Maechler
Matlab also allows both with and without ";", but I guess most people learn
quickly what the preferred way is:  Without ";", Matlab prints the output of
commands, including assignments; e.g., if you assign a 1e5-row matrix to
something, and didn't terminate the line with ";", Matlab will print that
matrix to the console.

Personally, having the extraneous ";" doesn't bother me nearly as much as
not indenting the code properly or leave spaces around operators.  I don't
use them, because I seldom have difficulty knowing when a statement is
suppose to end (given the code is properly indented).  Those who use Python
would know quite well, too, I guess.  For those who insist on having ";", I
guess they will never get the point of something like Python (or even
Fortran...).

Andy