Created
October 17, 2012 00:48
-
-
Save joshcough/3903097 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed trait Value{ val value: Any } | |
case class Closure[V](l:Lambda, env:Env) extends Value{ val value = this } | |
case class ObjectValue(value:Any) extends Value | |
case class DynamicValue(value: () => Value) extends Value | |
case class BuiltinFunction(name: Symbol, eval: (List[Expr], Env) => Value) extends Value { | |
val value = this | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment