ack()
  }
```

```scala
getOrElse(
  Some("bob@gmail.com"),
  () => throw new IllegalArgumentException("email is required")
)
// res: String = "bob@gmail.com"

getOrElse(
  None,
  () => throw new IllegalArgumentException("email is required")
)
// java.lang.IllegalArgumentException: email is required
```
]

---
# By-name parameters

.seventy-two-left[
```scala mdoc:reset
def getOrElse[A](option: Option[A], fallback: => A): A =
  option match {
    case Some(value) => value
    case None        => fallback
 