proposal-slice-notation

By tc39

Proposal-slice-notation Alternatives

Similar projects and alternatives to proposal-slice-notation

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-slice-notation alternative or higher similarity.

proposal-slice-notation reviews and mentions

Posts with mentions or reviews of proposal-slice-notation. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-27.
  • HypeScript: Simplified TypeScript's type system in TypeScript's own type system
    15 projects | news.ycombinator.com | 27 Jul 2022
    > Switch statements

    JS has had switch statements for a long time. Do you mean switch "expressions" that can be used inline? It's not pretty but JS has long supported that too using either eval() "hacks" or IIFEs: https://stackoverflow.com/questions/32451049/is-eval-the-onl...

    Do you mean pattern matching? There are two Stage 1 TC39 proposals with different approaches to it:

    More hands-on/direct: https://github.com/tc39/proposal-pattern-matching

    More indirect: https://github.com/tc39/proposal-do-expressions

    > list comprehensions

    There are several libraries with strong Iterator support today that while not syntactically gorgeous do great jobs at allowing you to write simple list operations. Off the top of my head are IxJS and iter-tools, but also classic mainstays like up to date versions of lodash and Ramda.

    There's a Stage 2 proposal to bring more of them into "the standard library": https://github.com/tc39/proposal-iterator-helpers

    There's also a Stage 2 proposal for an operator to make the syntax generally nicer no matter the library: https://github.com/tc39/proposal-pipeline-operator

    > array slicing

    Array.prototype.slice() was added back in ES2015: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

    Array.prototype.at() was "just added" in ES2022 for unary "slice" (ability to use negative indexes): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

    If you prefer syntax to function calls, there's a Stage 1 proposal still live for that: https://github.com/tc39/proposal-slice-notation

    > better equality operators

    That ship has probably sailed. Most projects at this point just have linter rules to standardize everything to the more reliable "triple equals" (===, and !==).

    There are proposals for more structural equality functions in the standard library, though, for instance: https://github.com/tc39/proposal-array-equality

  • JavaScript Is Weird
    7 projects | news.ycombinator.com | 28 Jun 2021
    Both are stage 1 proposals that I hope get in there some day.

    https://github.com/tc39/proposal-slice-notation

    https://github.com/tc39/proposal-pattern-matching

Stats

Basic proposal-slice-notation repo stats
2
516
0.0
5 months ago

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