ViliusCreator (2019-01-15T19:35:08.000Z)
I could definitely see usage of this when using custom Constructors. But this could confuse current code of JS:

```js
function A(B, C) {
    if(typeof B === ‘string’) // ...
}
A({[Symbol.typeof]: ‘string’})
```

This would make new code to use not only `typeof B === ‘String’`, but also `B instanceof ‘String’`.


---
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/20190115/71275886/attachment.html>
viliuskubilius416 at gmail.com (2019-01-15T20:05:22.226Z)
I could definitely see usage of this when using custom Constructors. But this could confuse current code of JS:

```js
function A(B, C) {
    if(typeof B === 'string') // ...
}
A({[Symbol.typeof]: 'string'})
```

This would make old code updated to use not only `typeof B === 'string'`, but also `B instanceof String` to secure.
Well, I don't see why someone would do this for fun, but I think that someone would still use that.

I would definitely would like this feature, but there are some downsides. 
viliuskubilius416 at gmail.com (2019-01-15T19:40:46.516Z)
I could definitely see usage of this when using custom Constructors. But this could confuse current code of JS:

```js
function A(B, C) {
    if(typeof B === 'string') // ...
}
A({[Symbol.typeof]: 'string'})
```

This would make old code updated to use not only `typeof B === 'String'`, but also `B instanceof 'String'` to secure.
Well, I don't see why someone would do this for fun, but I think that someone would still use that.

I would definitely would like this feature, but there are some downsides. 
viliuskubilius416 at gmail.com (2019-01-15T19:38:56.969Z)
I could definitely see usage of this when using custom Constructors. But this could confuse current code of JS:

```js
function A(B, C) {
    if(typeof B === 'string') // ...
}
A({[Symbol.typeof]: 'string'})
```

This would make new code to use not only `typeof B === 'String'`, but also `B instanceof 'String'`.