Skip to content

Commit

Permalink
[S15] Modify "Final Considerations" on mismatching in operators.
Browse files Browse the repository at this point in the history
Essentially, NFC ~ NFD -> Uni, instead of the previous "causes an error"
definition. Note that detailing various operators and functions still
needs doing.
  • Loading branch information
ShimmerFairy committed Dec 17, 2013
1 parent 2b0ef1b commit 51a72a0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions S15-unicode.pod
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,13 @@ C<NFKC>, and C<NFKD> contents without normalizing.
The inclusion of ropey types will most directly impact C<Uni>.
The interplay between conflicting types on string operators, such as
Operators between various string types need defining. The general rule should be
"most specialized type wins" for the return value.
NFC ~ NFD
is not defined, and for now considered an error in mismatching types.
NFD ~ NFD --> NFD
NFC ~ NFKD --> Uni
(UAX#15 says concat of mismatched NFs results in a non-NF string, which
is our Uni type.)
Regexes likely need more work, though I don't see anything immediate.
Expand Down

0 comments on commit 51a72a0

Please sign in to comment.