Hacker GitHub

← All repos

dotnet/csharplang

View on GitHub ↗ ★ 12,731 C#

The official repo for the design of the C# programming language

124 mentions on Hacker News by 100 people: 21 stories, 103 comments · first 2017-02-03 · latest 2026-10-21

Mentions per year 124 mentions · busiest year 2023 (20)
20082026
  1. I have a series of proposal for most/all of these. Associated types: https://github.com/dotnet/csharplang/issues/8712 Ownership: https://github.com/agocke/csharplang/blob/ownership/proposal...
    comment by andygocke · 2026-10-21 · in C# now beats Rust on WASM size
  2. …also looking at full blown discriminated unions (you can look at one of my proposals for that here: https://github.com/dotnet/csharplang/blob/main/meetings/work... ), which would allow for that. Syntax entirely tbd, but you'd do something…
    comment by Metasyntactic · 2026-05-24 · in .NET (OK, C#) finally gets union types
  3. Sure, as an example: https://github.com/dotnet/csharplang/blob/main/meetings/work... Again, very rough. We go round and round on things. Loving to decompose, debate and determine how we want to tackle all these large and interesting areas…
    comment by Metasyntactic · 2026-04-08 · in Union types in C# 15
  4. …if you want to use it. I was excited for DU until I saw the most recent implementation reveal. https://github.com/dotnet/csharplang/blob/main/proposals/uni... Compared to the beauty of Swift: https://docs.swift.org/swift-book/documentation/…
    comment by hirvi74 · 2026-03-26 · in Swift 6.3
  5. ▲ 4
    Experimental Type Union Type C#
    story by ahmedfouad · 2026-03-12 · 0 comments
  6. ▲ 4
    Proposal for Union Types in C#
    story by azhenley · 2026-03-08 · 0 comments
  7. It just needs discriminated unions! https://github.com/dotnet/csharplang/blob/main/meetings/work...
  8. Unions have a proposal: https://github.com/dotnet/csharplang/issues/9662
  9. …It looks like C# may gain value-based discriminated unions as well, though it's not settled yet: https://github.com/dotnet/csharplang/blob/main/proposals/uni...
  10. …but they want a better syntax (or sugar) to carry out the same semantics.) And the discussion: https://github.com/dotnet/csharplang/discussions/6072
  11. …here :) Discriminated unions continue to be worked on, and you can see our latest designs here: https://github.com/dotnet/csharplang/blob/main/proposals/uni... The space there is large and complex, and we have a large amount of resources…
    comment by Metasyntactic · 2025-09-18 · in What's New in C# 14: Null-Conditional Assignments
  12. …on sum types and exhaustive pattern matching, you can follow/participate in the proposal[1]. [1]: https://github.com/dotnet/csharplang/issues/8928
    comment by S04dKHzrKT · 2025-09-11
  13. …duck. > C #13 Wait. You mentioned C# has ADTs via sealed classes IIUC. Why the hell do they have a https://github.com/dotnet/csharplang/issues/8928 ticket for discriminated unions then? It implies that there are some differences between…
  14. ▲ 6
    C# 15 Union proposals overview
    story by Vake93 · 2025-08-27 · 1 comment
  15. …to the set (sum type) hazardous. They continue to fiddle with design approaches to solve this. See https://github.com/dotnet/csharplang/blob/main/meetings/2025...
  16. …[0]. Every time I accept that one its a quick revert to the more verbose indexing operators. [0] https://github.com/dotnet/csharplang/discussions/198
  17. ▲ 56
    C# Language Design Meeting for June 30th, 2025
    story by jasonthorsness · 2025-07-15 · 61 comments
  18. …got out of love in modern .NET and it remains to be seen how much they will ever improve them. https://github.com/dotnet/csharplang/discussions/158
  19. …major request, Union types, is also in proposal and will (hopefully) come in the next year or so: https://github.com/dotnet/csharplang/blob/main/proposals/Typ...
  20. …idea from F#”. This is not how programming language development works. You can read LDM notes at https://github.com/dotnet/csharplang/discussions?discussions... and specs are documented in the repo. > rather than making F# a viable…
    comment by neonsunset · 2025-04-09 · in A year of Rust in ClickHouse
  21. …Not the same I know, and I would love me a true ADT in C#. Edit (a formal proposal): https://github.com/dotnet/csharplang/blob/18a527bcc1f0bdaf54...
    comment by caspper69 · 2025-04-01 · in Why F#?
  22. …to ad hoc union types. TS and Python already have them and C# is adding them soonish [1]. [1] https://github.com/dotnet/csharplang/blob/main/proposals/Typ...
  23. Here's the language proposal for those that are interested. https://github.com/dotnet/csharplang/issues/8928
    comment by S04dKHzrKT · 2025-02-01 · in Why Tracebit is written in C#
  24. …C# will also support this once live (and continue its legacy of plucking great features from F#). https://github.com/dotnet/csharplang/blob/main/proposals/Typ...
    comment by kkukshtel · 2025-01-16 · in The Untouched Goldmine of F#
  25. …language to implement both AFAIK. C# has a proposal to add both unions and disjoint unions: https://github.com/dotnet/csharplang/blob/main/proposals/Typ... OCaml has polymorphic variants which are open disjoint unions. Kotlin is looking to…
    comment by jasdfasd · 2024-11-01 · in Sets, types and type checking
  26. …here is the spec about refs in structs and other lifetime features mentioned in the article: https://github.com/dotnet/csharplang/blob/main/proposals/csh... And here is the big list of ways .NET differs from the publish ECMA spec. Some of…
  27. 7 years ago: https://github.com/dotnet/csharplang/issues/1060 3 years ago: https://github.com/dotnet/csharplang/blob/main/meetings/2021... I've given up submitting to csharplang now. It seemed like a positive when it was first…
    comment by louthy · 2024-10-18 · in Net 9.0 LINQ Performance Improvements
  28. …https://learn.microsoft.com/en-us/dotnet/csharp/language-ref... And, it's getting better over time: https://github.com/dotnet/csharplang/issues/4935 This is essentially how I respond to web requests in my codebases right now: var table =…
  29. https://github.com/dotnet/csharplang/blob/main/proposals/Typ...
    comment by neonsunset · 2024-09-24 · in Why is F# code robust and reliable?
  30. An official proposal was just submitted for type unions: https://github.com/dotnet/csharplang/blob/18a527bcc1f0bdaf54...
    comment by kkukshtel · 2024-08-21 · in Official proposal for Type Unions in C#
  31. …} This will allow to remove exhaustiveness suppression and not pay for (house of) leaves. [0]: https://github.com/dotnet/csharplang/blob/18a527bcc1f0bdaf54...
    comment by neonsunset · 2024-08-09 · in State Monad for the Rest of Us
  32. …cover all the cases. I’m waiting for roles/extensions to see if I can achieve a similar result. https://github.com/dotnet/csharplang/discussions/5496
    comment by hakanderyal · 2024-08-08 · in Official proposal for Type Unions in C#
  33. Tearing issue is mentioned in this issue https://github.com/dotnet/csharplang/issues/7016 but not in proposal
    comment by facturi · 2024-08-08 · in Official proposal for Type Unions in C#
  34. ▲ 308
    Official proposal for Type Unions in C#
    story by Fervicus · 2024-08-07 · 302 comments
  35. …Typed Unions, not guaranteed yet but there is an official proposal that I believe is 2 weeks old. https://github.com/dotnet/csharplang/blob/main/proposals/Typ...
    comment by runevault · 2024-08-07 · in Please do not attempt to simplify this code
  36. ▲ 10
    Official type unions proposal by the C# language design team
    story by thunderbong · 2024-07-30 · 1 comment
  37. ▲ 7
    Language Design Proposal for C# Type Unions
    story by Croisonetto · 2024-07-29 · 1 comment
  38. ▲ 4
    Proposal: Type Unions for C#
    story by alexzeitler · 2024-07-26 · 0 comments
  39. …related to a GC. That’s why you don’t see constant expressions (but in the future that may change). https://github.com/dotnet/csharplang/issues/6926#issuecommen...
  40. …demonstrably no idea what ADTs are if you think you can use both sum and product types in C# see https://github.com/dotnet/csharplang/issues/113 You argue that Rust a no-GC language is going to be similar to a GC language, especially one…
  41. …but given that you mentioned (discriminated) unions, here are notes on recent design work: https://github.com/dotnet/csharplang/blob/main/meetings/2024... https://github.com/dotnet/csharplang/blob/main/meetings/2024...
  42. …is unfortunately a bit fuzzier, but the conceptual docs above include what most people want: https://github.com/dotnet/csharplang/discussions/4855 The updated unified C# language specification is CC, but it's still catching up to modern…
    comment by Pathogen-David · 2024-01-12 · in DevDocs
  43. …too many features[1]. Virtual threads are easier to use than async/await is another example. [1] https://github.com/dotnet/csharplang/issues/113
  44. Hi there. I'm the language designer who created the 'Collection Expression' design/specification: https://github.com/dotnet/csharplang/issues/5354 You can see the entire history of the proposal there. To answer you specific question, we…
    comment by Metasyntactic · 2023-11-14 · in .NET 8
  45. …[3] https://github.com/microsoft/CodeContracts [4] https://github.com/dafny-lang/dafny [5] https://github.com/dotnet/csharplang/issues/105
  46. …"natural type" so "var list = [1,2,3]" would be of type "List<int>" but it was postponed to C# 13 ( https://github.com/dotnet/csharplang/issues/5354#issuecommen... )
    comment by mpawelski · 2023-10-20 · in What's new in C# 12: overview
  47. …working with Result<T,TErr> easier as would provide exhaustive checking. DUs are being designed: https://github.com/dotnet/csharplang/issues/113
    comment by jve · 2023-10-20 · in What's new in C# 12: overview
  48. …improving source generators, and supposedly they are likely to add partial properties in C# 13. [1] https://github.com/dotnet/csharplang/issues/6420
    comment by nloum · 2023-10-20 · in What's new in C# 12: overview
  49. …and I don't have any issues. Hope one day I'd see concise syntax for catch and/or try expressions: https://github.com/dotnet/csharplang/discussions/2734 - but there is a lot of resistance.
    comment by jve · 2023-10-20 · in What's new in C# 12: overview
  50. https://github.com/dotnet/csharplang - "The official repo for the design of the C# programming language" that's in public.
    comment by jodrellblank · 2023-09-12 · in Why isn’t dotnet core popular among startups?