TurboScript icon indicating copy to clipboard operation
TurboScript copied to clipboard

User wants to have "instanceof" function

Open nidin opened this issue 7 years ago • 5 comments

What? User wants to have instanceof functions to check whether a variable is an instance of specific class

How?

let a = new Array<float32>(1);
console.log(a instanceof Array<float32>); //true
console.log(a instanceof Array<float64>); //false

nidin avatar Mar 16 '17 14:03 nidin

v2?

winksaville avatar Apr 12 '17 14:04 winksaville

Nice to have in v1 but it can be skipped to v2.

On Wed 12. Apr 2017 at 4:47 PM, Wink Saville [email protected] wrote:

v2?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/01alchemist/TurboScript/issues/6#issuecomment-293601066, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMGZuebOSFmeoaqAx_q8lR5sGgZqFk6ks5rvOPugaJpZM4MfaNn .

nidin avatar Apr 12 '17 15:04 nidin

SG

On Wed, Apr 12, 2017 at 8:49 AM Nidin Vinayakan [email protected] wrote:

Nice to have in v1 but it can be skipped to v2.

On Wed 12. Apr 2017 at 4:47 PM, Wink Saville [email protected] wrote:

v2?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/01alchemist/TurboScript/issues/6#issuecomment-293601066 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAMGZuebOSFmeoaqAx_q8lR5sGgZqFk6ks5rvOPugaJpZM4MfaNn

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/01alchemist/TurboScript/issues/6#issuecomment-293622313, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-hHHSNigBU_9gKG-JI2XZ8G5nVhtPTks5rvPKfgaJpZM4MfaNn .

winksaville avatar Apr 12 '17 18:04 winksaville

Is there a way to tag it v1.0.0 "nice to have", if not maybe mark it with a "v1.1.0" label so its obvious what's nice to have and what's a requirement.

On Wed, Apr 12, 2017 at 11:32 AM Wink Saville [email protected] wrote:

SG

On Wed, Apr 12, 2017 at 8:49 AM Nidin Vinayakan [email protected] wrote:

Nice to have in v1 but it can be skipped to v2.

On Wed 12. Apr 2017 at 4:47 PM, Wink Saville [email protected] wrote:

v2?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/01alchemist/TurboScript/issues/6#issuecomment-293601066 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAMGZuebOSFmeoaqAx_q8lR5sGgZqFk6ks5rvOPugaJpZM4MfaNn

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/01alchemist/TurboScript/issues/6#issuecomment-293622313, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-hHHSNigBU_9gKG-JI2XZ8G5nVhtPTks5rvPKfgaJpZM4MfaNn .

winksaville avatar Apr 12 '17 18:04 winksaville

Also it would be very useful to implement this.constructor property.

MaxGraey avatar Apr 23 '17 22:04 MaxGraey