Slide 49
Slide 49 text
Some rejected ideas
def tag(
string, #: String
attributes #: Hash[Symbol, untyped]
) #: String
end
def tag(string, attributes = {}) #: (String, ?Hash[Symbol, untyped]) -> String
end
# @rbs method: (String, ?Hash[Symbol, untyped]) -> String
def tag(string, attributes = {})
end
# @param string [String]
# @param attributes (Hash[Symbol, untyped])
# @returns [String]
def tag(string, attributes)
end
Too wide
@rbs method is redundant
Cryptic but not compact