Skip to content

Remove js.use(x).as[T] #2948

Closed
Closed
@sjrd

Description

@sjrd

There are 3 good reasons for that:

  • It definitely can be implemented and tested outside of the core, so it should.
  • With Scala.js-defined JS classes, this feature has lost a lot of its usefulness (GitHub reports 2 occurrences of js.use in .scala files in the wild, and one of them should really be a Scala.js-defined JS class).
  • It is the only macro in the core library, so getting rid of it means getting rid of all macros in the core lib.

Metadata

Metadata

Assignees

Labels

enhancementFeature request (that does not concern language semantics, see "language")

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions