[SR-13863] String.init(describing:) in addition to current four overloads, should add three more #56261
Labels
feature
A feature request or implementation
standard library
Area: Standard library umbrella
String
Area → standard library: The `String` type
will not do
Resolution: Will not be worked on
Additional Detail from JIRA
md5: 14b8acdeba460c8d67aaaa8f59f10bf3
Issue Description:
Four overload currently:
First three are fast, last one slow and should be avoided if possible, but the fourth is called even when type is known:
this end up calling the last one which is slow. So to avoid calling this slow one, add these three for fast:
See:
https://forums.swift.org/t/question-re-string-init-describing-overloads-why-there-are-four/41172
https://forums.swift.org/t/init-subject-customstringconvertible-xxx-instance-subject-vs-init-xxx-instance-customstringconvertible/41219/12
The text was updated successfully, but these errors were encountered: