Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Revisit variables in string interpolation when Swift 5 is released #11

Open
a2 opened this issue Dec 24, 2018 · 0 comments
Open

Revisit variables in string interpolation when Swift 5 is released #11

a2 opened this issue Dec 24, 2018 · 0 comments

Comments

@a2
Copy link
Owner

a2 commented Dec 24, 2018

Currently, variable use in String interpolation is a big hack that encodes the Variable's Attachment value as JSON and is pulled apart into a Dictionary of string and attachmentsByRange by the withInterpolatedText(_:) function.

With SE-0228 in Swift 5, we can have custom types that conform to ExpressibleByStringInterpolation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant