# Expunging \`new\` from scala 3

**URL:** <https://contributors.scala-lang.org/t/expunging-new-from-scala-3/2868>\
**Category:** Language Design\
**Created:** [February 24, 2019, 5:19pm UTC](https://contributors.scala-lang.org/t/expunging-new-from-scala-3/2868 "2019-02-24T17:19:36Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![AMatveev](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/amatveev/32/847_2.png) [@AMatveev](https://contributors.scala-lang.org/u/AMatveev)\
**Post date:** [February 25, 2019, 2:00pm UTC](https://contributors.scala-lang.org/t/expunging-new-from-scala-3/2868/38 "2019-02-25T14:00:24Z")

</div>

Sorry, It seems, I have maken too short description.  
I want to say that `new` is not big boilerplate for me.  
It is not very hard problem to make `object.apply`, for me.  
The real boilerplate is the lack of [kotlin receiver function](https://contributors.scala-lang.org/t/pre-sip-thisfunction-scope-injection-similar-to-kotlin-receiver-function/2234)

I think it can be made by simple syntactic sugar in most cases. For example in the [topic](https://contributors.scala-lang.org/t/functionalclass/2871) I have maken the example:

```auto
abstract class ExtendedFunction{
  def execute():Unit
}
def doSomeThing(f:ExtendedFunction):Unit = {}
def main(args:Array[String]):Unit = {
      doSomeThing{
          println("ok")
      }
     /*it is similar to 
     doSomeThing{ new ExtendedFunction{
        override def execute():Unit = {
          println("ok")
        }
      }    
     */ 
}

```

---

_[View the full topic](https://contributors.scala-lang.org/t/expunging-new-from-scala-3/2868)._
