tc39/proposal-slice-notation
View on GitHub ↗ ★ 528 HTML
8 mentions on Hacker News by 5 people: 0 stories, 8 comments · first 2018-06-29 · latest 2022-07-28
20082026
-
…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…
comment by WorldMaker · 2022-07-28 · in HypeScript: Simplified TypeScript type system in TypeScript's own type system -
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
comment by Joeri · 2021-06-28 · in JavaScript Is Weird -
…adopted, and am glad to see it looks like there is once again a proposal under consideration: https://github.com/tc39/proposal-slice-notation/blob/master/...
comment by montroser · 2020-05-30 · in ECMAScript 4: The Missing Version -
…3 String methods to take a substring (substring, substr, slice) (there's even 4th way in proposal: https://github.com/tc39/proposal-slice-notation ) The last added one is slice, and actually simplifies things, with its consistency with…
comment by 11235813213455 · 2019-12-07 · in New Features in ES2019 -
…- haskell: perms [] = [[]] perms xs = [ x:ps | x <- xs , ps <- perms ( xs\\[x] ) ] - js: (using https://github.com/tc39/proposal-slice-notation for conciseness) const perms = xs => xs.length === 0 ? [[]] : xs.flatMap((xi, i) =>…
comment by 11235813213455 · 2019-10-28 · in Ask HN: What is the most beautiful piece of code you've ever read? -
…Other proposals I'm more excited about: - https://github.com/tc39/proposal-iterator-helpers - https://github.com/tc39/proposal-slice-notation/ (and https://github.com/tc39/proposal-slice-notation/pull/32 )
comment by 11235813213455 · 2019-09-28 · in New ES2019 JavaScript features -
the a:b notation for JS is still in proposal phase https://github.com/tc39/proposal-slice-notation/pull/32 , but I'll use it below to create ranges I don't understand your `+0.5`, I've written below the transcription for your description…
comment by 11235813213455 · 2019-08-22 · in List comprehensions across languages (2007) -
There's currently a TC39 stage 1 proposal to add something very like the Python syntax to JavaScript: https://github.com/tc39/proposal-slice-notation . There's an active Babel feature request to implement exactly that proposal:…
comment by taion · 2018-06-29 · in Recreating Python's Slice Syntax in JavaScript Using ES6 Proxies