-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Labels
staleOld issues that went staleOld issues that went stale
Description
Inspired by #2666
JavaScript array's sorting is confusing since it compares using the stringified value. We can put a warning on that external (Js.Array.sortInPlace
) to discourage its usage. I'm wondering which other Js helpers we should discourage, aka what JS functions should we discourage even if we're writing in pure JS?
- sort
- isNaN (use Number.isNaN instead)
- parseInt (we can warn and ask folks to use the version with the radix instead)
- ?
Basically, we can piggy back on ocaml's warning system as a linter. It's interesting that writing in BS (+ Reason) might allow you to write better JS here.
watadarkstar, sibelius, zploskey, joealden, jihchi and 8 morejustgage
Metadata
Metadata
Assignees
Labels
staleOld issues that went staleOld issues that went stale