08
Dev.to Kotlin
作者:withNext.NET
發布:08-05 04:49
G#: a modern .NET language with Go, Kotlin, and Swift ergonomics
G# compiles directly to managed .NET assemblies while keeping the language surface small and predictable.
重點摘要
Combines Go/Kotlin/Swift-style syntax with full .NET interop
Supports data classes, null-safety, structured concurrency, and explicit numerics
Ships with compiler, REPL, migrator, VS Code extension, and LSP tooling
G# is a new .NET language by David Obando, introduced at version 0.3 and designed for modern, concise syntax without leaving the .NET ecosystem. It compiles directly to managed assemblies and works with the CLR, BCL, NuGet, MSBuild, Portable PDB, and C# interop. The language features package/import/func syntax, data classes, nil-based null-safety, structured concurrency via scope blocks, and explicit numeric widths. It also supports LINQ, properties, P/Invoke, and existing testing tools. The article notes that G# is still pre-1.0, so compatibility is not yet guaranteed, and recommends starting with small experiments while following its progress.
G#:一门具备 Go、Kotlin 和 Swift 语感的现代 .NET 语言
G# 直接编译为受管 .NET 程序集,同时保持语言表面小巧且可预测。
重點摘要
结合 Go/Kotlin/Swift 风格语法与完整 .NET 互操作
支持数据类、空值安全、结构化并发和显式数值类型
提供编译器、REPL、迁移器、VS Code 扩展和 LSP 工具链
G# 是 David Obando 推出的一门新 .NET 语言,于 0.3 版发布,目标是在不放弃 .NET 运行时与生态的前提下,提供现代而简洁的语法。它可直接编译为受管程序集,并可使用 CLR、BCL、NuGet、MSBuild、Portable PDB 以及 C# 互操作。语言特性包括 package/import/func 语法、数据类、基于 nil 的空值安全、通过 scope 块实现的结构化并发,以及带宽度标记的数值类型。文章也说明 G# 仍处于 pre-1.0 阶段,建议先从小规模实验和学习开始。
G#:一門具備 Go、Kotlin 與 Swift 語感的現代 .NET 語言
G# 直接編譯為受管理的 .NET 組件,同時維持精簡且可預測的語言表面。
重點摘要
結合 Go/Kotlin/Swift 風格語法與完整 .NET 互通
支援資料類別、null 安全、結構化並行與明確數值型別
提供編譯器、REPL、轉換器、VS Code 擴充與 LSP 工具鏈
G# 是 David Obando 推出的新 .NET 語言,於 0.3 版亮相,目標是在不放棄 .NET 執行階段與生態系的前提下,提供現代、簡潔的語法。它可直接編譯成受管理的組件,並與 CLR、BCL、NuGet、MSBuild、Portable PDB 及 C# 無縫互通。語言設計包含 package/import/func 語法、資料類別、以 nil 為核心的 null 安全、scope 區塊的結構化並行,以及具體標示寬度的數值型別。文章也提醒,G# 仍屬 pre-1.0,建議先從小型實驗與學習開始。