<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Duncan Murdoch wrote:
<blockquote TYPE=CITE>I don't follow this argument.&nbsp; Underscore isn't
used anywhere else in
<br>the language, so when you see one, you know it's an assignment.&nbsp;
On
<br>the other hand, both "&lt;" and "-" have multiple other uses.&nbsp;
This leads
<br>to lots of possibilities for confusion:
<p>&nbsp; x &lt;--5
<br>&nbsp; x &lt; -5
<br>&nbsp; x &lt;- 5</blockquote>
Those are classic examples. Nevertheless, "&lt;-" is more appealing visually
than "_" as an assignment operator, mainly because "_"&nbsp; is used in
file and variable names in other programming languages.
<blockquote TYPE=CITE>(Of course, I actually prefer the Pascalian :=, but
I realize that
<br>puts me in a double minority :-).
<br>&nbsp;</blockquote>
Here I agree with you. I think that future releases of R should have "="
as the assignement operator, just like the last version of S.
<p>Alberto
<pre>--&nbsp;
__________________ Alberto G. Murta ______________________
&nbsp;&nbsp;&nbsp;&nbsp; IPIMAR - Institute of Fisheries and Sea Research&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Avenida de Brasilia; 1449-006 Lisboa; Portugal
Tel:351 213027062; Fax:351 213015948; <A HREF="http://www.ipimar.pt">http://www.ipimar.pt</A></pre>
&nbsp;</html>