Change escaped character behavior in Strings #11
Genarito
started this conversation in
Ideas (RFC)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
Currently, in the String specs it says:
When any escape sequences not listed are used, It'll be more convenient to follow JSON and YAML behavior of raising an error to prevent unexpected problems.
Proposal
Add an
InvalidEscapedCharacterError
to the specs. Implementations must raise it in case any character not listed in the escape sequence list is used as an escaped character by the user.Considerations
--
Version
Gura 2.0.0
as It adds breaking changes to the existing API. This change would be introduced with Literal Keys (#10) to prevent a huge amount of versions.Changes
InvalidEscapedCharacterError
definition to the String section.Beta Was this translation helpful? Give feedback.
All reactions