G#: Go・Kotlin・Swift風の新.NET言語登場
मूल शीर्षक: G# – A modern .NET language with Go, Kotlin, and Swift ergonomics
यह क्यों महत्वपूर्ण है
.NET ecosystem में आधुनिक भाषा विकल्प के रूप में G# डेवलपर्स को परिचित syntax के साथ .NET की शक्ति उपयोग करने का अवसर देता है।
David Obandoが開発したG#は、Go、Kotlin、Swiftの構文スタイルを.NETランタイム上で実現する新プログラミング言語です。バージョン0.3が公開され、ソースコードは直接マネージドアセンブリにコンパイルされます。
G#एक नई प्रोग्रामिंग भाषा है जो .NET runtime पर Go, Kotlin और Swift की ergonomics लाती है। यह भाषा source code को सीधे managed assemblies में compile करती है, जिससे सामान्य executable बनाया जा सकता है। वर्तमान में संस्करण 0.3 उपलब्ध है।
मुख्य विशेषताओं में शामिल हैं: packages और imports, func declarations, sealed classes, discriminated enums, arrow lambdas, if let के जरिए nullable handling, और scope के साथ structured concurrency। इसके अलावा async/await, Task[T], async sequence[T] streams, तथा opt-in extension के रूप में channels और goroutines भी उपलब्ध हैं।
G# में int32, uint64, float64 जैसे width-bearing primitive types हैं जो हर value का आकार स्पष्ट करते हैं। Tooling के रूप में command-line compiler (gsc), MSBuild SDK, VS Code extension, language server और Portable PDB debugging शामिल हैं। एक पूर्ण language specification, tutorials और 'Effective G#' idioms guide भी प्रदान की गई है। CLR interoperability के जरिए किसी भी CLR type को import और उसके methods को call किया जा सकता है।