luau/Analysis
JohnnyMorganz 12ee1407a1
Add named parameters to math lib (#722)
Name the parameters used in `math` lib

This is mainly done to highlight the particular confusion for
`math.atan2`, where `y` comes before `x`, but this might not be
immediately obvious.

And then I added the rest of the names for consistency.

Note: I didn't add names to `math.random` as it's currently typed as
`(number?, number?) -> number`. Naming it `min` and `max` is technically
incorrect for the 1 argument version.
Maybe it should be typed as an intersection instead?
2022-10-21 08:05:56 -07:00
..
include/Luau Sync to upstream/release/549 (#707) 2022-10-14 12:48:41 -07:00
src Add named parameters to math lib (#722) 2022-10-21 08:05:56 -07:00