3 ms·
We use it exclusively for guard statements at the beginning of a function, and we keep it to a single statement per line return unless token.present? return un
by jmuguy 4y ago
We use it exclusively for guard statements at the beginning of a function, and we keep it to a single statement per line
return unless token.present?
return unless user.valid?
return unless foo = get_foo(user)
Its extremely readable and easy to grok imo.