[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02210] Re: parse bug in 1.5

From: Dave Thomas <Dave@...>
Date: 2000-03-28 05:07:39 UTC
List: ruby-talk #2210
"Conrad Schneiker" <schneiker@jump.net> writes:

> Well, however this issue is resolved, maybe "always use parens" (in
> the sorts of contexts we have been discussing) should be something
> that a Ruby "strict mode" should require, and maybe verbose mode
> should always warn about it.

FWIW, in the book we're recommending that people use parens, but...

I don't think you could make it mandatory without drastically changing 
the feel of the language.

  class Address
    attr :zip,true
  end
  a = Address.new
  a.zip = 76654
  p a.zip

would become

  class Address
    attr(:zip, true)
  end
  a = Address.new()
  a.zip = 76654
  p(a.zip())

Which looks different, and messier, to my eyes.



Dave

In This Thread