Variables with a name ending in question mark

question?
is that a valid ruby variable name?
if not: would that be a useful feature for ruby to introduce?
if so: should I RCR it?

Thanks!
-Roger

···

--
Posted via http://www.ruby-forum.com/.

question?
is that a valid ruby variable name?

nope.

if not: would that be a useful feature for ruby to introduce?

perhaps, but I think it would be hard (impossible?) to do without
breaking this critical functionality:
http://redhanded.hobix.com/bits/theseYelpsAndSquealsAreTotallyValid.html

o.0,
-Harold

···

On 10/1/07, Roger Pack <rogerpack2005@gmail.com> wrote:

variables ending with ? are not valid in Ruby.
They would not be useful.
Methods ending in ? normally return true or false.

Harold Hausman wrote:

···

On 10/1/07, Roger Pack <rogerpack2005@gmail.com> wrote:

question?
is that a valid ruby variable name?

nope.

if not: would that be a useful feature for ruby to introduce?

perhaps, but I think it would be hard (impossible?) to do without
breaking this critical functionality:
http://redhanded.hobix.com/bits/theseYelpsAndSquealsAreTotallyValid.html

o.0,
-Harold

Question: are these YelpsAndSqueals used much?
--
Posted via http://www.ruby-forum.com/\.

As José Jiménez
José Jiménez (character) - Wikipedia in
his "Reluctant Astronaut" role was wont to say in response to the
question, "What's that your'e holding? Is that your crash helmet?"

"Oooo, I hope not1'

···

On 10/1/07, Roger Pack <rogerpack2005@gmail.com> wrote:

Harold Hausman wrote:
> On 10/1/07, Roger Pack <rogerpack2005@gmail.com> wrote:
>> question?
>> is that a valid ruby variable name?
>
> nope.
>
>> if not: would that be a useful feature for ruby to introduce?
>
> perhaps, but I think it would be hard (impossible?) to do without
> breaking this critical functionality:
> http://redhanded.hobix.com/bits/theseYelpsAndSquealsAreTotallyValid.html

Question: are these YelpsAndSqueals used much?

--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/