Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is exactly the kind of thing that TypeScript generated JS could help optimize. Because tsc can see that this `map` call is, in fact, Array.prototype.map, it can deduce that the lambda will get sent three values. It could generate dummy arguments for that in the JS output. It could just as easily generate a hint to the same effect in some constraint file as the GP suggests.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: