[RFC] impr: More explicit runtime array size

Aperta
#3,439 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
3.4k
Fork
151
Merge medio
3g 8h
PR unite (30g)
55

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di software-mansion/TypeGPU

Tutte le issue di software-mansion/TypeGPU

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.