From Objective-C to Swift: Use Complex #define Macros in Swift
Yogev Sitton

lol. this is so wrong. macros do text substitution. Complex macros substitute text in complex, often unpredictable ways.

Macros are not meant for code reuse. there are LANGUAGE features for that.

The examples you give should never have been macros, they should have been extensions on the base class or defined in a Constants class.

examples like this are the very reason there IS no preprocessor in swift.

Show your support

Clapping shows how much you appreciated JoeDaniels29’s story.