Proposal: Class Templates

ViliusCreator viliuskubilius416 at gmail.com
Wed Jan 16 17:27:12 UTC 2019


You could use
```js
new Abc`abc`(‘abc’)
```
But you could only use strings. What about constructors? You would need to use
```js
const thatConstructor = (new Function(‘return ’ + t))()
```
But it would only give what is defined in that constructor.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190116/2a0dfe89/attachment.html>


More information about the es-discuss mailing list