# What's the difference between SimpleStringLiteralExprSyntax and StringLiteralExprSyntax?

**URL:** <https://forums.swift.org/t/whats-the-difference-between-simplestringliteralexprsyntax-and-stringliteralexprsyntax/87721>\
**Category:** Macros\
**Tags:** swift-syntax, macros\
**Created:** [June 26, 2026, 9:03am UTC](https://forums.swift.org/t/whats-the-difference-between-simplestringliteralexprsyntax-and-stringliteralexprsyntax/87721 "2026-06-26T09:03:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CTMacUser](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ctmacuser/32/1802_2.png) [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Post date:** [June 26, 2026, 9:03am UTC](https://forums.swift.org/t/whats-the-difference-between-simplestringliteralexprsyntax-and-stringliteralexprsyntax/87721/1 "2026-06-26T09:03:35Z")

</div>

The latter seems a lot more supported publicly than the former. What was its inspiration? What are their differences? Is the simple variant meant for general use? Or should we conditionalize string processing only with `StringLiteralExprSyntax`.

---

<div class="post-metadata">

**Author:** ![allevato](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/allevato/32/385_2.png) [@allevato](https://forums.swift.org/u/allevato)\
**Post date:** [June 27, 2026, 10:24pm UTC](https://forums.swift.org/t/whats-the-difference-between-simplestringliteralexprsyntax-and-stringliteralexprsyntax/87721/2 "2026-06-27T22:24:38Z")

</div>

`SimpleStringLiteralExprSyntax` is only used in a couple special places in the language grammar where a string literal is allowed but not raw strings or string interpolations: `AvailabilityLabeledArgumentSyntax` (like `@available(..., renamed: "this string")` and `PoundSourceLocationArgumentsSyntax` (`#sourceLocation(file: "this string")`).

If your macro doesn't process either of those, then you should never have to consider it.
