[ruby-cvs:70026] nobu:r62901 (trunk): parse.y: else without rescue

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Mar 23 09:40:08 JST 2018


nobu	2018-03-23 09:40:08 +0900 (Fri, 23 Mar 2018)

  New Revision: 62901

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62901

  Log:
    parse.y: else without rescue
    
    * parse.y (bodystmt): [EXPERIMENTAL] make `else` without `rescue`
      a syntax error.  [DevelopersMeeting20180315Japan]
    
      https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20180315Japan
      https://docs.google.com/document/d/1RT0ijSo8uJ4Awn3CEvuYkjH0TVeXSYgeAFNmVGYC3ak/edit#
      > * do-else-end
      >   https://twitter.com/joker1007/status/974173396006129664
      >   https://twitter.com/joker1007/status/974173641347756032
      >   https://twitter.com/joker1007/status/974176512554369027
      >   Will be SyntaxError in 2.6-preview2
      >   All of begin/do/def (experimental)

  Modified files:
    trunk/NEWS
    trunk/parse.y
    trunk/spec/ruby/language/rescue_spec.rb
    trunk/test/ruby/test_parse.rb


More information about the ruby-cvs mailing list