Core: Math module

Created on 16 Jun 2020  路  3Comments  路  Source: elm/core

Basics module contains many functions and constants such as pi snd cos which should go in a separate Math module

Most helpful comment

  • A lot of the math stuff in Basics aren't common enough to need to automatically get imported with (..) compared to stuff like identity and I think it is very bad that the core module that has the most stuff is also the one that always gets automatically imported with (..).

  • Seeing Math.toPolar when reading code is way less confusing than toPolar since that function is not common or well known compared to other things in the core library.

All 3 comments

Thanks for reporting this! To set expectations:

  • Issues are reviewed in batches, so it can take some time to get a response.
  • Ask questions a community forum. You will get an answer quicker that way!
  • If you experience something similar, open a new issue. We like duplicates.

Finally, please be patient with the core team. They are trying their best with limited resources.

Hi.

You don't actually present any argument in favor of such a change.
"should" is not an argument.

  • A lot of the math stuff in Basics aren't common enough to need to automatically get imported with (..) compared to stuff like identity and I think it is very bad that the core module that has the most stuff is also the one that always gets automatically imported with (..).

  • Seeing Math.toPolar when reading code is way less confusing than toPolar since that function is not common or well known compared to other things in the core library.

Was this page helpful?
0 / 5 - 0 ratings