最新消息:请大家多多支持

Metaprogramming in Swift: A Guide to Writing Swift Macro

未分类 dsgsd 18浏览 0评论

th_MJZpfh4d61MV25xvW94nCmIs6SNxcV6I

Published 9/2024
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Language: English | Duration: 1h 26m | Size: 821 MB

Unearth the feature that extends Swift compiler

What you’ll learn
Learn Meta Programming in Swift Language
Understand to build Swift Macros
Get introduced to swift-syntax package
Get insight on internal working of Swift Macros

Requirements
Having intermediate to advanced exposure to swift programming language is important to make best out of the course.

Description
Swift Macros, introduced in Swift 5.9, open up new opportunities for enhancing the language and allow developers to innovate without waiting for future updates. This course offers a hands-on introduction to Swift Macros, helping you build confidence in creating your own macros through practical examples. You’ll also gain an understanding of the internal workings of Swift and its compiler.As this is my first course on Udemy, Swift Macros hold a special place. The course is condensed three months of study into under two hours to deliver the core concepts clearly and effectively. Special care has been taken to ensure that the essence of the material is preserved while providing a concise learning experience.The course is divide into 5 moduleIntroduction – Covers the history of macro, provides insight into the foundation philosophy of swift macro and takes the narrative to define the swift macros. This module will be an entry point to the world of swift macros.Concept Warm up – Creating a mental model is a learning philosophy that can be applied to have a long lasting learning of construct. This requires having the foundational concept clarified where the story and logic can be weaved. This module talk about compilation, swift syntax package, abstract syntax tree and the expression/declaration in context of swift ecosystemComponents Of Swift Macro – Now that the foundation is laid, this module will introduce the tools for creating macros. Macro Roles, Macro Declarations, Macro Implementations, Unit Testing, and Compiler Plugins are essential aspects of macro development and will be covered in the module. As you go through this module, you might feel overwhelmed by the amount of information. The 20 minutes spent here will be valuable as the concepts become more apparent as you progress through the course. The subsequent section will reinforce these ideas with practical narrative.Handson with Macro’s – Getting into action with developing various macros is the key outcome of the session. There are overarching concepts that repeat. Therefore the video is not going to specifics that which repeats itself rather with approx 30 mins we will cover developing a simulated use case which has relevance in real life coding. We will develop macros that encompass the different roles supported by the 5.9 version of swift.Conclusion – The final section where we summarise our learning and also be aware of the fact that the learning does not stop here, it will continue as you will explore the swift macro in a real project. We will cover the packaging and shipping of a macro spm and a slide that talks about additional learning information acquired.


Password/解压密码www.tbtos.com

资源下载此资源仅限VIP下载,请先

转载请注明:0daytown » Metaprogramming in Swift: A Guide to Writing Swift Macro

您必须 登录 才能发表评论!