3 ms·
I haven’t looked through everything, but I opened a random TS comparison: Wing let x = 1; // x is a num let v = 23.6; // v is
by vlovich123 4y ago
I haven’t looked through everything, but I opened a random TS comparison:
Wing
let x = 1; // x is a num
let v = 23.6; // v is a num
let y = "Hello"; // y is a str
let z = true; // z is a bool
let w: any = 1; // w is an any
let q: num? = nil; // q is an optional num
TS:
const x: number = 1;
const v: number = 23.6;
const y: string = "Hello";
const z: boolean = true;
const w: any = 1;
const q: number? = undefined;
Except you’d never do that in TS unless you were being extra verbose (which you could with Wing too) because the types for x, y, and z are superfluous and don’t change the inferred type. So if you remove those types, the examples become identical (except for using const vs let).
Intentionally showing TS in a worse light than reality in a comparison is not a good look in terms of intellectual honesty.
- pixel_tracing 4y agoWing looks more like swift to me