Skip to content

Commit 13013f9

Browse files
Abduqodiri Qurbonzodafzhinkin
Abduqodiri Qurbonzoda
authored andcommitted
Add an alternative approach for parsing functions
1 parent bf141e3 commit 13013f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

proposals/stdlib/uuid.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,12 @@ Duration.toIsoString(): String
482482
ByteArray.toHexString(format: HexFormat = HexFormat.Default): String
483483
```
484484

485+
An alternative approach is to support several formats in `parse()` and introduce `parseHexDash()`
486+
and `toHexDashString()` functions for parsing from and formatting to the standard "hex-and-dash" representation.
487+
The concern with supporting multiple formats in `parse()` is that supporting an additional format in the future
488+
could be a breaking change. This situation occurs when code that relies on the rejection of formats not
489+
currently supported is linked with a newer version of the Standard Library that accepts other formats.
490+
485491
## Dependencies
486492

487493
The dependencies of the proposed API:

0 commit comments

Comments
 (0)