From: "M. Edward (Ed) Borasky" Date: 2009-02-25T14:48:55+09:00 Subject: Re: Nexus Programming Language On Tue, Feb 24, 2009 at 6:49 PM, Clifford Heath wrote: > karlvonl wrote: >> >> If I ever design my own programming language, I'm going to use := for >> assignment and == for equality, and let a single = be a syntax error, >> just to avoid the whole confusion. > > I used <- in a language I designed once. So does R and IIRC all the other dialects of S. Also IIRC R allows a = b a <- b b -> a which have equivalent meaning -- "a becomes (a reference to the object) b". But "formal" R code uses "<-", "->" is deprecated and "=" appears in a lot of actual code. And "==" is the equality test operator. At one point R also allowed a _ b but I think that disappeared sometime since I first learned R. I remember that one couldn't have names like descent_rate but had to use descent.rate because dot was a letter and underscore wasn't. But underscore is now a letter. -- M. Edward (Ed) Borasky http://www.linkedin.com/in/edborasky I've never met a happy clam. In fact, most of them were pretty steamed.