Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Curious Case of JavaScript’s `sort`. Parent comment
var x : number[] // should compile: x.sort(function(a,b) { return a - b; })
var y : string[] // should compile: y.sort()
The reason that this isn't done is due to a misplaced ideology about "typescript is just javascript" - or some similar nonsense.
The bigger problem here is that we are using tools that are designed by a committee, and we have almost no hope of getting this fixed.
There are no comments on this comment yet.
var x : number[] // should compile: x.sort(function(a,b) { return a - b; })
var y : string[] // should compile: y.sort()
The reason that this isn't done is due to a misplaced ideology about "typescript is just javascript" - or some similar nonsense.
The bigger problem here is that we are using tools that are designed by a committee, and we have almost no hope of getting this fixed.