winglang/wing

Primitive type capitalization

Open

#1.468 geöffnet am 7. Feb. 2023

Auf GitHub ansehen
 (21 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (214 Forks)github user discovery
breaking-changegood first issue✨ enhancement🛠️ compiler

Repository-Metriken

Stars
 (5.385 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Feature Spec

This is a proposal to change all built-in types to use lowercase instead of PascalCase, so they all have a similar look and feel, and are also distinguishable from user-defined types.

So basically the lowercase versions are just aliases:

  • str
  • num
  • bool
  • duration
  • date
  • json
  • array<T>
  • set<T>
  • map<T>
  • mutarray<T>
  • mutset<T>
  • mutmap<T>

Use Cases

To reduce cognitive load, all types should have a similar look & feel.

As an example, see the spec for Json, which proposes the all built-in types will have a from_json() method.

Component

Language Design

Community Note

Please vote by adding a 👍 reaction to the issue to help us prioritize. If you are interested to work on this issue, please leave a comment.

Contributor Guide