[Accepted] SE-0498: Expose demangle function in Runtime module

Hello, Swift community.

The review of SE-0498 ran from November 4th to 18th, with an extension to allow additional time for feedback on tweaks to the proposal.

Review feedback was generally positive. Over the course of the review discussion some small tweaks were requested and made to the proposal:

  • The “low-level” interface API was refined to more precisely specify the semantics when there is insufficient space in the supplied buffer to hold the result of demangling, and to guarantee that any partial result is valid UTF8.
  • Support for demangling C++ symbols was removed. While this is useful for some users, we do not want to sign up to maintain a C++ demangler for every platform Swift may support in the future. C++ demangling should be provided by C++ libraries.

Accordingly, SE-0498 is accepted.

I'd like to thank the community for its thoughtful contributions during the pitch and review of this proposal. The community's involvement helps to make Swift a better language.

Steve Canon
Review Manager

11 Likes

Thank you everyone for participating in the review, the demangle function is going to land on main very shortly – just had some hiccups landing it recently :slight_smile:

4 Likes