When designing Swift we made a key decision to do away with the C preprocessor, eliminating bugs and making code much easier to understand. This is a big win for developers, but it also means Swift needs to implement some old features in new ways. Most of these features are obvious (importing modules, conditional compilation), but perhaps the most interesting one is how Swift supports macros like
@auto_closure is great, but I still wish for the power of actual macros.
Stay up-to-date by subscribing to the Comments RSS Feed for this post.