Skip to content

feat!: string is the text type; remove str - #104

Merged
Kinflou merged 1 commit into
masterfrom
feat/string-only
Oct 18, 2026
Merged

Kinflou merged 1 commit into
masterfrom
feat/string-only

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 18, 2026

Copy link
Copy Markdown
Member

Core part of #100. Breaking, with no deprecation period, as decided in the issue.

  • Grammar: the str leaf (Type::Str) is removed. str now parses as an ordinary name, and validation reports it as an unknown type, with help "str was removed; use string". This applies to fields, arrays, arguments, return types and constants. String gets "the text type is spelled string". The editor shows the same help, since it runs the same validation.
  • vocabulary: str is gone (12 primitives), and the keyword examples use string.
  • diagnostics: the "did you mean str?" suggestion for a string token is removed (string never reached it as an unexpected token).
  • Migrated to string: every .ids source, inline test schema, example, the parser benchmark, GRAMMAR.md, and std's http.ids. The rewrite touched type positions only; Rust's &str / str:: are unchanged.

Generators, cli, language server, docs, highlighting and playground follow in the pin cascade once the round's core PRs are merged.

str was an accepted spelling of the text type alongside string. It is
removed outright, with no deprecation period (pre-1.0): the grammar
leaf goes, so str now parses as an ordinary name and fails as an
unknown type. That error, and the constant-type one, carry a pointed
help: "`str` was removed; use `string`". String (the Rust spelling)
gets "the text type is spelled `string`".

vocabulary drops str (12 primitives); get_suggestion drops its "did
you mean `str`?" for a token that never reached it. Every .ids source,
inline test schema, example, benchmark and GRAMMAR.md moves to string,
including std's http.ids.

Refs #100
@Kinflou
Kinflou merged commit 6764a78 into master Oct 18, 2026
9 checks passed
@Kinflou
Kinflou deleted the feat/string-only branch October 18, 2026 01:09
@Kinflou
Kinflou restored the feat/string-only branch October 18, 2026 01:09
@Kinflou
Kinflou deleted the feat/string-only branch October 18, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant