This repository was archived by the owner on Dec 18, 2020. It is now read-only.
This repository was archived by the owner on Dec 18, 2020. It is now read-only.
Deprecate this library #22
Closed
Description
This library is a random grab bag of various functions which happen to be in the global scope in JS. I don't think it makes a huge amount of sense in the first place (we shouldn't just copy the way JS organises things), and I think it especially doesn't make sense now that alternate backends are a thing.
I think the things that this library provides could more sensibly be split into other libraries:
- Number values and operations like
isNan
,isFinite
,infinity
, parsing and formatting can live in a library likepurescript-numbers
(indeed most of them already do) - Parsing Ints is already provided in
purescript-integers
- encoding and decoding URIs and URI components could live in
purescript-strings
- I think now that we have safe versions of all of these, there's not really any reason for the unsafe versions to exist (other than perhaps that the Maybe return values for formatting numbers are awkward, but @sharkdp has already handled that in the way I think is most appropriate in the
purescript-numbers
library, by clamping the format parameters).
However, I think we should have functions for parsing and formatting Number values somewhere in core. So my proposal is to move things into other libraries as described above, move numbers
into core, and then deprecate this library.
@sharkdp: would moving numbers
to core be alright with you?
Metadata
Metadata
Assignees
Labels
No labels