https://kotlinlang.org logo
#server
Title
# server
l

Larry Meadors

07/19/2022, 6:30 PM
off-hand, i can't think of a good reason for a constructor param to be nullable 😐
💯 1
🙌 1
👍 1
d

dave08

12/13/2022, 10:01 AM
For creating unit test fakes
Copy code
class TestClock(var currentNow: Instant = Clock.System.now()) : Clock {
    override fun now(): Instant = currentNow
}
5 Views