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

Some things I wanted in JavaScript is a goto command, and macros. They mention objects to compare by value, and I had a bit different idea which is a UserPrimitive function which has a similar meaning (but different; user primitives would also allow some degree (but still restricted in some ways) of operator overloading).

Bigint is a good thing they added. Sometimes you need to deal with 64-bit integers, and other times you might want unlimited range, so that helps. However, some operations that are not currently built-in perhaps should be in order to be more efficient, such as log2 of bigint numbers or counting trailing bits.

A built-in RegExp.quote() function is another thing (although it is easy to make, it seem to me it is something that ought to be built-in).

If macros are implemented, then many features can be done by macros and do not need to be built-in features.

One feature of JavaScript that I dislike is automatic semicolons.

And yet, many proposals (including these) may be rejected if better ways are found.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: