Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove ‘takeWhile’ and ‘dropWhile’ #123

Merged
merged 1 commit into from
Apr 5, 2019

Conversation

davidchambers
Copy link
Member

These functions are unsound, as explained in #122. Given that it may take us a long time to reformulate these functions, I propose the following actions:

  1. Remove Z.takeWhile and Z.dropWhile.
  2. Release [email protected].
  3. Specialize S.takeWhile and S.dropWhile to (a -> Boolean) -> Array a -> Array a.
  4. Release [email protected].
  5. Take as much time as necessary to resolve reformulate ‘takeWhile’ and ‘dropWhile’ #122 satisfactorily.

There will be one breaking change to each project; this two-phase approach is no more disruptive than merging #122 immediately would have been.

@davidchambers davidchambers force-pushed the davidchambers/unsound branch from 1b5de74 to e544b16 Compare April 4, 2019 18:18
@masaeedu
Copy link
Member

masaeedu commented Apr 4, 2019

Makes sense to me. Does anyone know of important non-array usages of takeWhile that would be broken by this?

@gabejohnson
Copy link
Member

@davidchambers I think this is the best option ATM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants