Comment

Comment by masklinn

Most of it seems pretty nice (although I can hardly believe Ruby 1.8 does not have named groups), but...

    tip "Ruby 1.9 supports 4 ways to call a proc!"
      f =->n {[:hello, n]}
      p f[:ruby] # => [:hello, :ruby]
      p f.call(:ruby) # => [:hello, :ruby]
      p f.(:ruby) # => [:hello, :ruby]
      p f === :ruby # => [:hello, :ruby]
wtf? Why are they writing that like it's a good thing?
parent masklinn 15 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton