ErrorsValues and types · rule
syntax.collection_type
Collection type written in another language's form.
Area 2, Values and types; not declinable; the next step is usually the agent's.
A collection names its types in angle brackets: List<Tag>, Set<Tag>, Map<Tag, Count>.
type Tag = Text { max_length: 30}type Basket = Object { tags: Tag[]}
error Jadpo writes List<Tag>, not Tag[]
--> main.jadpo:6:14
|6 | tags: Tag[] | ^^ write `List<Tag>`
- reason
T[]is a list type in TypeScript, Java and C#,[]Tin Go, andlist[T]in Python; Jadpo writes a collection's types in angle brackets, as inList<T>,Set<T>andMap<K, V>.- next
- Write
List<Tag>(agent) - rule
- syntax.
collection_ type - help
- https://jadpo.
dev/docs/errors/syntax. collection_ type
Markdown for agents: /docs/errors/syntax.collection_type.md.Built from Jadpo main at aee2e8f.