Skip to content
Prev 321 / 885 Next

The pedagogy of the assignment operator

On Tue, Oct 26, 2010 at 8:41 PM, Murray Jorgensen <maj at waikato.ac.nz> wrote:
To me = reminds me of equality and its easily confused with == whereas
 <- unambiguously means assignment.

-> should not be taught. Its too weird and almost never appears in
code out there so its wasting people's time on trivia rather than
focusing them on the essentials.

The fact is that R involves programming and syntax and if they fear
that to the extent that it requires teaching bad practice then it
might be better to forget about R entirely and switch to something
more palatable driven by a GUI.  This might be some other software
entirely or maybe Rcmdr or other GUI front end to R.