• भाषा, standard library, build system, और platform support में विस्तार करते हुए developer experience को बेहतर बनाया गया
  • C interoperability को मजबूत करना, Android के लिए आधिकारिक SDK जोड़ना, embedded environment में सुधार, और DocC documentation tool का विस्तार प्रमुख बदलाव हैं
  • Swift Package Manager, integrated build engine और prebuilt Swift Syntax support के ज़रिए cross-platform build consistency को बेहतर बनाता है
  • Swift Testing में warning-level issue recording, test cancellation, image attachment जैसी नई सुविधाएँ जोड़ी गई हैं, जिससे testing flexibility बढ़ती है
  • Android SDK के आधिकारिक रिलीज़ के साथ Swift का cross-platform development क्षेत्र और विस्तृत हुआ है, और Kotlin/Java apps के साथ integration संभव हुआ है

Swift 6.3 के प्रमुख अपडेट

  • Swift 6.3, भाषा, standard library, build system, और platform support के पूरे क्षेत्र में विस्तारित सुविधाएँ प्रदान करता है
  • C interoperability को मजबूत करना, Android के लिए आधिकारिक SDK जोड़ना, embedded environment में सुधार, और documentation tool DocC का विस्तार इसकी मुख्य बदलाव हैं
  • इसका लक्ष्य developer experience को बेहतर बनाना और cross-platform development integration को आगे बढ़ाना है

भाषा और standard library

  • C interoperability

    • नए @c attribute के माध्यम से Swift functions या enum को C code में expose किया जा सकता है
    • @c(MyLibrary_callFromC) के रूप में custom C declaration name निर्दिष्ट किया जा सकता है
    • @c और @implementation को साथ में इस्तेमाल करने पर Swift में C header में घोषित functions को implement किया जा सकता है
    • इस संयोजन में Swift, मौजूदा C declarations से मेल खाने की जाँच करता है
  • Module Name Selectors

    • जब एक ही नाम वाले API कई modules से import किए जाएँ, तो ModuleA::getValue() के रूप में module-specific call किया जा सकता है
    • Swift::Task syntax के माध्यम से concurrency और string processing API तक पहुँचा जा सकता है
  • library API performance control

    • @specialize: generic API के specific types के लिए pre-specialized implementation प्रदान करता है
    • @inline(always): inlining को force करके call site पर function body को expand करता है
    • @export(implementation): ABI-stable libraries में function implementation को expose करके अतिरिक्त optimization की अनुमति देता है
    • संबंधित proposals Swift Evolution dashboard में देखे जा सकते हैं

package और build सुधार

  • Swift Package Manager में Swift Build integration preview शामिल है, जो सभी platforms पर एक consistent build experience प्रदान करता है
    • integrated build engine के माध्यम से cross-platform development consistency को मजबूत किया गया है
    • उपयोगकर्ता अपने packages पर सीधे test करके issues report कर सकते हैं
  • SwiftPM 6.3 के प्रमुख सुधार
    • Prebuilt Swift Syntax support: macro-only libraries में prebuilt swift-syntax binaries का उपयोग किया जा सकता है
    • flexible documentation inheritance control: symbol graph बनाने वाले command plugins में inherited docs शामिल करने या न करने को नियंत्रित किया जा सकता है
    • package traits exploration feature: swift package show-traits command से package के supported traits देखे जा सकते हैं
    • अधिक विवरण SwiftPM 6.3 release notes में शामिल हैं

core library updates

  • Swift Testing

    • warning-level issue recording: Issue.record(..., severity: .warning) के साथ test fail किए बिना केवल warning दिखाना संभव है
    • test cancellation feature: try Test.cancel() से चल रहे test और उसकी child tasks को रोका जा सकता है
    • image attachment support: Apple और Windows platforms पर testing के दौरान images attach की जा सकती हैं
    • संबंधित proposals: ST-0012, ST-0013, ST-0014, ST-0015, ST-0016, ST-0017, ST-0020
  • DocC

    • Markdown output support: --enable-experimental-markdown-output option से Markdown documents जनरेट किए जा सकते हैं
    • per-page static HTML content: `` के भीतर summary HTML insert करके search engine और accessibility को बेहतर बनाया जा सकता है
    • code block annotation expansion: nocopy, highlight, showLineNumbers, wrap जैसे नए format options जोड़े गए हैं
    • इसे --enable-experimental-code-block-annotations option से सक्षम किया जा सकता है

platform और environment

  • Embedded Swift

    • C interoperability को मजबूत करना, debugging में सुधार, और linkage model को पूरा करने की दिशा में प्रगति सहित कई सुधार शामिल हैं
    • विस्तृत जानकारी “Embedded Swift Improvements coming in Swift 6.3” ब्लॉग में देखी जा सकती है
  • Android

    • Swift SDK for Android का पहला आधिकारिक रिलीज़
    • Swift के साथ native Android apps development और Swift packages के Android builds को support करना संभव है
    • Swift Java और Swift Java JNI Core के माध्यम से Kotlin/Java apps के साथ integration किया जा सकता है
    • इसे Swift के cross-platform development expansion के लिए एक महत्वपूर्ण milestone माना जा रहा है
    • getting started guide “Getting Started with the Swift SDK for Android” दस्तावेज़ में उपलब्ध है

अगले कदम

  • Swift 6.3 toolchain को Install Swift पेज से install किया जा सकता है
  • developers तुरंत नई सुविधाओं के साथ प्रयोग कर सकते हैं और feedback दे सकते हैं

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.