[SR-2303] ExpressibleByStringInterpolation: ability to restrict types used in string interpolation #44910
Labels
compiler
The Swift compiler itself
feature
A feature request or implementation
improvement
standard library
Area: Standard library umbrella
swift evolution implemented
Flag → feature: A feature that was approved through the Swift evolution process and implemented
Additional Detail from JIRA
md5: d86f9995a0b9dc90aad8b59b81c4bab2
relates to:
Issue Description:
It's desirable for types conforming to
ExpressibleByStringInterpolation
to be able to restrict the kinds of values that can be used in string interpolation.The following example is a simplified version of brentdax (JIRA User)'s example from the swift-evolution thread:
The text was updated successfully, but these errors were encountered: