Mohsen Shahini
sealed *class* Expr
data *class* Const(*val* number: *Double*) : Expr()
data *class* Sum(*val* e1: Expr, *val* e2: Expr) : Expr()
sealed *class* Expr {
}
Orhan Tozan
val foo = Const(1)
val foo = Expr.Const(1)
Bhaskar
Expr
Const
Sum
A modern programming language that makes developers happier.