Giter Club home page Giter Club logo

Comments (9)

azu avatar azu commented on August 19, 2024

合わせて考えたいこと

from js-primer.

azu avatar azu commented on August 19, 2024

First Impression

サロゲートペアで判定方法として触れる可能性がある。

Atomicsは触れてないので特に触れない

文字列とUnicode · JavaScript Primer #jsprimerで触れる可能性はあるがちょっとAdvancedな感じがする

ArrayBufferの詳細は触れてないので触れない。

配列 · JavaScript Primer #jsprimer で検討する

非同期処理:Promise/Async Function · JavaScript Primer #jsprimerでDefferredについては触れてないので触れないかもしれない。

from js-primer.

azu avatar azu commented on August 19, 2024

Well-Formed Unicode Strings

孤立したサロゲートペアを発見するメソッド。

encodeURIComponent("\uD800")

のような孤立したサロゲートペアを受け取ると例外を投げる文字列の判定に利用できる。

サロゲートペア では、特に孤立したサロゲートペアについては触れていない。
そのため、追加するかはちょっと微妙。コラム的に書くのはありかもしれないぐらいな印象

結論

Issueは作るが、必要なら対応するぐらいな優先度

from js-primer.

azu avatar azu commented on August 19, 2024

tc39/proposal-atomics-wait-async: "asynchronous atomic wait" for ECMAScript

Atomics.waitAsync
Atomics自体が登場していないため、特に触れない

結論

対応しない

from js-primer.

azu avatar azu commented on August 19, 2024

tc39/proposal-regexp-v-flag: UTS18 set notation in regular expressions

特にフラグを網羅してるわけではないので、触れなくても問題なさそう。
フラグの一覧だけを出すというのはありかもしれないが、現状はそのパターンがないので触れない

結論

対応しない

from js-primer.

azu avatar azu commented on August 19, 2024

ArrayBuffer

ArrayBuffer自体を扱っていないので対応しない

結論

対応しない

from js-primer.

azu avatar azu commented on August 19, 2024

tc39/proposal-array-grouping: A proposal to make grouping of array items easier

Web互換性のためにObject.groupByになった。
Map.groupBy(array, fn)もある。

グループ化は頻出ではあるので含めるのは妥当そうだけど、配置が難しい

  • Array.prototype.groupObject.groupBy(array, cb)
  • Array.prototype.groupToMapMap.groupBy(array, cb)

という経緯。
どちらも配列を引数として受け取るようになってるので、配列関係。

データの変換的に見れば

  • Object.groupBy は 配列をオブジェクトにするメソッド
  • Map.groupBy は配列をMapにするメソッド

として捉えられる。

Object.groupByは、 配列 to objectなので、Array.prototype.reduce の近くにあるのが良さそう。
Map.groupByは、Map/Setにあるのが良さそう。
Map.groupByはちょっと必要かは怪しい。

結論

  • Object.groupBy: 配列の章に追加する
  • Map.groupBy は Map/Setの章に追加する?

from js-primer.

azu avatar azu commented on August 19, 2024

tc39/proposal-promise-with-resolvers

Promise.withResolvers によるイベントの Promise 化 | blog.jxck.io
Defferredパターンが必要なのは、イベントの付与とPromiseを組み合わせる時。
書籍では特に出てこない。

Ajax通信 · JavaScript Primer #jsprimerはclickが最初に決まっているので、クリックしたタイミングで付与するわけじゃない。XHRならありえたけど。

少し発展的なパターンなので、この本だと不要そう。

結論

対応しない。

from js-primer.

azu avatar azu commented on August 19, 2024

https://github.com/tc39/ecma262/releases/tag/es2024-candidate-2024-02
ES2024 RCがリリースされた

from js-primer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.