DEV Community

loading...

Discussion on: How Do You Name Your Boolean Variables?

Collapse
databasesponge profile image
MetaDave 🇪🇺

For Ruby, and the humble question mark.

def intersects_with?(other)
  return false if empty? || other.empty?

  (self & other).any?
end

How would you feel about godzilla?