I find it frustrating that macros can't accept evaluated static stings:

static let code: StaticString = "doSomething()"
@ Macro(code) // should take "doSomething()" instead of "code"

StaticString is known at compile time and is immutable, so intuitively it should be allowed to evaluate and be equivalent to
@ Macro("doSomething()")

This would enable some powerful and elegant code gen APIs.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/alexozun/statuses/115694274568610668 on your instance and quote it. (Note that quoting is not supported in Mastodon.)