-
Notifications
You must be signed in to change notification settings - Fork 24
AsciiChar::SOX should be AsciiChar::STX #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It should be possible to rename the variant itself and add a deprecated const item to the impl with the previous variant (or just add impl AsciiChar {
#[deprecated("Use `AsciiChar::STX`")]
pub const SOX: Self = Self::STX;
} This should be technically non-breaking, even in |
Renaming the variant breaks use ascii::AsciiChar::*; // Warning, unused.
let _ = SOX; // Error, did you mean SO? use AsciiChar::SOX; // Error, did you mean SOH? I couldn't find much about importing associated constants, other than a thread saying it's not supported and another thread explaining why. (the linked reference page doesn't make it clear at all). I'll deprecate the variant, and then maybe rename with associated constant as fallback in a later version. On the other hand I doubt which way it's done matters, |
SOX is the wrong name. for this character. Renaming the variant and adding SOX as associated constant would break `use`s of it. both explicit and glob imports. Fixes tomprogrammer#78.
SOX is the wrong name. for this character. Renaming the variant and adding SOX as associated constant would break `use`s of it. both explicit and glob imports. Fixes tomprogrammer#78.
SOX is the wrong name for this character. Renaming the variant and adding SOX as associated constant would break `use`s of it. both explicit and glob imports. Fixes tomprogrammer#78.
SOX is the wrong name for this character. Renaming the variant and adding SOX as associated constant would break `use`s of it. both explicit and glob imports. Fixes #78.
It seems that this crate's "Start of Text" member (ASCII '\x02') is mislabeled as SOX, whereas everything else on the web (including the linked-to Wikipedia page) references it as STX.
Since this would be a breaking change, I'm not sure how that would fit within the versioning, but I figured I'd report it anyway since I haven't seen any comments for this on the Issues/PRs for this repo.
The text was updated successfully, but these errors were encountered: