v1.1.0
- Added optional default for
?
macro. Simply add the default as the second argument and that will be returned in the absent case. e.g:
case class Person(name: String)
val person: Person = null
assert(?(person.name,"") == "")
?
macro. Simply add the default as the second argument and that will be returned in the absent case. e.g:case class Person(name: String)
val person: Person = null
assert(?(person.name,"") == "")