Skip to content

v1.2.0

Compare
Choose a tag to compare
@ryanstull ryanstull released this 27 Jul 07:05
· 35 commits to master since this release

Added ?? macro for null coalescing.

Use:

case class Person(name: String)

val person = Person(null)

assert(??(person.name)("Bob") == "Bob")

val person2: Person = null
val person3 = Person("Sally")

assert(??(person.name,person2.name,person3.name)("No name") == "Sally")