Skip to content

Commit

Permalink
remove lazy vals
Browse files Browse the repository at this point in the history
  • Loading branch information
winitzki committed Aug 17, 2024
1 parent f7afa01 commit 96fbc37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scall-core/src/main/scala/io/chymyst/dhall/Syntax.scala
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,8 @@ object Syntax {
case _ => None
}

// TODO: count usages of these lazy vals and determine if they are actually important for efficiency
lazy val alphaNormalized: Expression = Semantics.alphaNormalize(this)
lazy val betaNormalized: Expression = Semantics.betaNormalizeAndExpand(this, BetaNormalizingOptions.default)
@inline def alphaNormalized: Expression = Semantics.alphaNormalize(this)
@inline def betaNormalized: Expression = Semantics.betaNormalizeAndExpand(this, BetaNormalizingOptions.default)

/** Print `this` to Dhall syntax.
*
Expand Down

0 comments on commit 96fbc37

Please sign in to comment.