proposal-flatMap

proposal for flatten and flatMap on arrays (by tc39)

proposal-flatMap Alternatives

Similar projects and alternatives to proposal-flatMap

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better proposal-flatMap alternative or higher similarity.

proposal-flatMap reviews and mentions

Posts with mentions or reviews of proposal-flatMap. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-10.
  • SmooshGate
    4 projects | news.ycombinator.com | 10 Oct 2022
  • Pipeline Operator and Partial Application - Functional Programming in JavaScript
    2 projects | /r/javascript | 20 Jan 2021
    If you're doing a series of mutations specific to a custom type in that fashion, then there isn't much benefit. But imagine you want to chain operations on an existing type, whether it's a built-in like String, or a type introduced by a different package like sqlite.Database. To use method chaining you'd have to monkey-patch them, which can lead to all sorts of problems: colliding with other packages that want to monkey-patch the same types, confusing the reader when unfamiliar and seemingly undocumented methods appear (why does the SQLite documentation not mention this sqlite.Database#drop method? Which of my installed packages added that? ), your package breaking when the thing you're monkey-patching changes its API, altering object iterations, etc. The troubles with Prototype.js and MooTools in the '00s showed some of the headaches monkey-patching can lead to when it comes to JS especially, where users expect ever-changing browsers to work with 25-year-old code. (I still support changing flatten to smoosh, though.) You might subclass the existing type or encapsulate it in a new type, but then you're potentially breaking the user's typechecking, preventing the use of any other packages that want to do the same thing, escaping tree shaking, and becoming incompatible with unexpected types (what if the user already subclassed sqlite.Database themselves, and want to apply your transformation to that?).

Stats

Basic proposal-flatMap repo stats
2
214
0.0
over 2 years ago

The primary programming language of proposal-flatMap is HTML.

Popular Comparisons


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com