Skip to content

Instantly share code, notes, and snippets.

View cb372's full-sized avatar

Chris Birchall cb372

View GitHub Profile
@cb372
cb372 / Foo.scala
Last active February 18, 2022 13:49
Explaining default args using javap
import java.time.Instant
object Foo {
case class Timers(
timer1: Long,
timer2: Long = Instant.now().toEpochMilli,
timer3: Long
)
val a = Timers(