On Jan 27, 2008 7:54 PM, Yukihiro Matsumoto <matz / ruby-lang.org> wrote:
> Which do you prefer?

+1 for allowing :""
The way trunk is right now, is not quite consistent:

irb(main):001:0> :""
SyntaxError: (irb):1: empty symbol literal
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb/workspace.rb:80:in `eval'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb/workspace.rb:80:in `evaluate'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb/context.rb:218:in `evaluate'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb.rb:149:in `block (2
levels) in eval_input'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb.rb:258:in `signal_status'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb.rb:146:in `block in
eval_input'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb/ruby-lex.rb:243:in
`block (2 levels) in each_top_level_statement'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in `loop'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in
`block in each_top_level_statement'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in `catch'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in
`each_top_level_statement'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb.rb:145:in `eval_input'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb.rb:69:in `block in start'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb.rb:68:in `catch'
        from /home/alexeyv/ruby/lib/ruby/1.9.0/irb.rb:68:in `start'
        from ./irb:12:in `<main>'
Maybe IRB bug!!
irb(main):002:0> "".intern
=> :""



-- 
Alexey Verkhovsky
CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com]
RubyWorks [http://rubyworks.thoughtworks.com]