Repository navigation
feat!: string is the text type; remove str - #104
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Core part of #100. Breaking, with no deprecation period, as decided in the issue.
strleaf (Type::Str) is removed.strnow parses as an ordinary name, and validation reports it as an unknown type, with help "strwas removed; usestring". This applies to fields, arrays, arguments, return types and constants.Stringgets "the text type is spelledstring". The editor shows the same help, since it runs the same validation.stris gone (12 primitives), and the keyword examples usestring.str?" suggestion for astringtoken is removed (stringnever reached it as an unexpected token).string: every.idssource, inline test schema, example, the parser benchmark,GRAMMAR.md, and std'shttp.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.