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. It just needs discriminated unions! https://github.com/dotnet/csharplang/blob/main/meetings/work...
  6. Unions have a proposal: https://github.com/dotnet/csharplang/issues/9662
  7. …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...
  8. …but they want a better syntax (or sugar) to carry out the same semantics.) And the discussion: https://github.com/dotnet/csharplang/discussions/6072
  9. …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
  10. …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
  11. …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…
  12. …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...
  13. …[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
  14. …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
  15. …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...
  16. …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
  17. …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#?
  18. …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...
  19. 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#
  20. …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#
  21. …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
  22. …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…
  23. 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
  24. …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 =…
  25. https://github.com/dotnet/csharplang/blob/main/proposals/Typ...
    comment by neonsunset · 2024-09-24 · in Why is F# code robust and reliable?
  26. 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#
  27. …} 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
  28. …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#
  29. 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#
  30. …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
  31. …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...
  32. …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…
  33. …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...
  34. …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
  35. …too many features[1]. Virtual threads are easier to use than async/await is another example. [1] https://github.com/dotnet/csharplang/issues/113
  36. 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
  37. …[3] https://github.com/microsoft/CodeContracts [4] https://github.com/dafny-lang/dafny [5] https://github.com/dotnet/csharplang/issues/105
  38. …"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
  39. …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
  40. …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
  41. …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
  42. 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?
  43. …https://github.com/domn1995/dunet It's on the roadmap and will arrive at some point: https://github.com/dotnet/csharplang/blob/main/proposals/dis...
    comment by CharlieDigital · 2023-08-24 · in Bun v0.8
  44. …exceptions. Oh, csharplang already had discussion on the matters about try/catch single statements: https://github.com/dotnet/csharplang/issues/786
  45. …the above code is exhaustive because no proper sum types Thats because c#s enum is not "closed" https://github.com/dotnet/csharplang/issues/3179
    comment by hardware2win · 2023-08-18 · in TypeScript is surprisingly ok for compilers
  46. This seem to be a longer running one: https://github.com/dotnet/csharplang/issues/113
    comment by chem83 · 2023-08-08 · in The combined power of F# and C#
  47. …(There are multiple proposals tracking the idea. This seems the most comprehensive and "central": https://github.com/dotnet/csharplang/issues/7016 )
    comment by WorldMaker · 2023-08-07 · in The combined power of F# and C#
  48. https://github.com/dotnet/csharplang/issues/7009 [Proposal]: Interceptors #7009 > An interceptor is a method which can declaratively substitute a call to itself instead of a call to an interceptable method at compile time. This…
  49. …Main[2] a few years ago. [1]: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... [2]: https://github.com/dotnet/csharplang/blob/main/proposals/csh...
  50. …API is used. Searching how people configured something. Searching accidental uses of an attribute: https://github.com/dotnet/csharplang/discussions/5657#discus...