Hacker News new | ask | show | jobs
by taf2 3098 days ago
Anyone else noticing syntax ruby parser regressions?

e.g.

  class FooBar < Foo
    prepend_before_filter only: [:create, :destroy] { 
  request.env["hello.skip_timeout"] = true }
  end
was valid in ruby 2.4 but invalid now in 2.5
1 comments

I believe this syntax was only accidentally valid: https://bugs.ruby-lang.org/issues/13939#note-5