This repository was archived by the owner on May 19, 2025. It is now read-only.

Description
type InitialTimestamp extends Number {
validate() { initial(now) }
}
initial(init) { prior(this) == null ? this == init : this == prior(this) }
compiles to
".validate": "(newData.isNumber() && (this == null ? this == now : this == this))"
Would be nice if this just threw an error at compile time