[RFC] impr: More explicit runtime array size

オープン
#3,439 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api

調査の方向性

This is a design RFC spun out of a review comment on PR #3271, not a scoped task. Start by reading the discussion at that pull request to see how d.arrayOf(d.u32, 0) is currently implemented and where runtime-sized arrays are handled in the type layer, then read the linked PR diff for the deprecation workaround the author mentions. Done means the team has settled on whether to accept a 'runtime-sized' sentinel, not that a patch has landed, so this needs maintainer input before any code is written.

索引モデルが issue の本文から書いたものです。

説明

Have we considered a more explicit approach than d.arrayOf(d.u32, 0), like d.arrayOf(d.u32, 'runtime-sized')? This might make it easier to exclude it in types (no need for weird deprecates), as well as making it more discoverable.

Originally posted by @aleksanderkatan in https://github.com/software-mansion/TypeGPU/pull/3271#discussion_r4666163277

主要言語
TypeScript
スター
3.4k
フォーク
151
平均マージ
3日 8時間
マージ済み PR(30日)
55

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

software-mansion/TypeGPU のほかの issue

software-mansion/TypeGPU の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。