I think it can be easily implemented with decorators ( https://github.com/tc39/proposal-decorators). Something like `@unimplemented`.
In my opinion it doesn't offer enough benefits to be added as a new syntax. Em qua, 21 de mar de 2018 às 04:02, Naveen Chawla <[email protected]> escreveu: > Can you give a simple example? > > On Wed, 21 Mar 2018 at 00:44 dante federici <[email protected]> > wrote: > >> With the advent of TypeScript, classes, etc one feature I liked from >> scala is: `???`, the [Predef.???]( >> https://www.scala-lang.org/api/current/scala/NotImplementedError.html) >> token. >> >> Basically, you can place `???` which would type as whatever the method is >> typed as (for things like Typescript, Symbol definitions, etc.), and when >> run, throws the "NotImplementedError". >> >> This is useful when writing libraries or other code -- more readable that >> "cannot call undefined" when the method is missing, and a nice placeholder >> for young APIs. >> >> This is basically the same as writing: `throw new Error('Unimplemented')`. >> _______________________________________________ >> es-discuss mailing list >> [email protected] >> https://mail.mozilla.org/listinfo/es-discuss >> > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > -- Augusto Moura
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

