Claude Petit

Results 16 comments of Claude Petit

So I suggest : Number Boolean String Object Symbol Int8/16/32/64 UInt8/16/32/64 BigInt Float16/32/64/80/128 Decimal32/64/128 Boolean8x16/16x8/32x4/64x2/8x32/16x16/32x8/64x4 Int8x16/16x8/32x4/64x2/8x32/16x16/32x8/64x4 UInt8x16/16x8/32x4/64x2/8x32/16x16/32x8/64x4 Float32x4/64x2/32x8/64x4 Rational Complex Type void Note that "void" is a special keyword. And...

@sirisian Yes, I suggest a base type named "Type" (or whatever you want). The "parse" function was an example, and is not mandatory. Each type can have their own members,...

@sirisian Yeah, the important thing is I'd like to avoid primitive types and "typeof". With the incoming of classes, I wish JS will be more object-oriented. I wish to be...

I don't understand the second one. Can you explain ?

Ok, I got it.

Maybe more like this, to respect the prototypes chain : ``` js ((uint8):uint8).prototype.isPrototypeOf(value) ``` I'm not sure that function signatures can fit with types. Yes, they are part of the...

I opt for "use stricter" to change the behavior of "typeof", so : ``` js typeof myFunc === "(uint8):uint8" ```

Yeah I know. I had the feeling it was unsure.

Maybe something like : ```js type BarType { a: uint8[] }; const foo = { a: [0, 1, 2] }; const bar:BarType = foo; // Returns a new object: {...

By decorating an "export", what comes to me in mind is something like... ```js @allows("https://myapp.doodad.com") export @static class A {....} ```