but I wish I could write something like ``` val fo...
# codereview
d
but I wish I could write something like
Copy code
val foo = “something here”
val fooObject = object {
  foo
}
that would be the same as
Copy code
val foo = “something here”
val fooObject = object {
  val foo = foo
}