Utilizing ++ and -- for comments

They've already seen the light of day:

irb(main):001:0> ++ 100
=> 100
irb(main):002:0> -- 100
=> 100

yikes!, weird and dangerous, imho. And it confuses nubies (at least on me
eg).

consider eg:

irb(main):007:0> x++ --x
=> 2

irb(main):007:0> x++--x
=> 2

it gets weirder.. :slight_smile:

I would be happier if they return error.

And we have comment mechanisms already too :slight_smile:

I understand that not everyone likes the hash-mark comment
idiom. But isn't this just another of the thousand things

We understand that. I'm happy with hash mark btw. If -- be equal to #, then
I'm also happier. I'm just proposing use or better use for ++/--. I think we
can propose alternatives for =begin and =end also.

David

kind regards -botp

路路路

David A. Black [mailto:dblack@wobblini.net] wrote:

Hi --

路路路

On Mon, 14 Feb 2005, [iso-8859-1] "Pe帽a, Botp" wrote:

David A. Black [mailto:dblack@wobblini.net] wrote:

They've already seen the light of day:

irb(main):001:0> ++ 100
=> 100
irb(main):002:0> -- 100
=> 100

yikes!, weird and dangerous, imho. And it confuses nubies (at least on me
eg).

If you're a nuby there must be two people with your name, because
someone with that name has been posting here for several years :slight_smile:

David

--
David A. Black
dblack@wobblini.net