Comment

Comment by griffinheart

Its in the issue comments

    def foo?
      Object.new
    end

    foo?.class
since "foo?" is a valid method it would conflict with "?."

Edit: with ".?" looks like "foo?.?class"

Edit 2: side note, this would never pass a code review, the expectation of "foo?" is that it returns true/false.

parent griffinheart 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton