From: MikkelFJ Date: 2002-08-11T08:27:16+09:00 Subject: Re: def sqr x = x * x end "Harry Ohlsen" wrote in message news:200208110906.22947.harryo@zip.com.au... > On Sun, 11 Aug 2002 08:47, you wrote: > > I find > > > > def sqr x = x * x end > > > > nicer than > > > > def sqr x ; x * x end > > Surely, though, the first implies the method has a side-effect of changing the > value of x, which is obviously not the intention of the function. In fact, > what's the point of doing an assignment whose value you never use? Right, I was drawing parallels to another language without thinking Comparisons only go so far. def sqr(x) x * x end is also nice, and it works. Mikkel