louthy/language-ext
View on GitHub ↗ ★ 7,083 C#
C# pure functional programming framework - come and get declarative!
109 mentions on Hacker News by 20 people: 5 stories, 104 comments · first 2014-11-19 · latest 2026-09-16
20082026
-
…it augments me rather than hinders. It's just not there for me yet. Too much information? :D [1] https://github.com/louthy/language-ext [2] https://github.com/louthy/iterator-prototype (this is messy prototype code, don't hate me).
comment by louthy · 2026-09-16 · in Small programming tricks -
…LanguageExt is really nice for addressing some C# shortcomings, for me this is night and day. [0] https://github.com/louthy/language-ext [1] https://arrow-kt.io/
comment by LelouBil · 2026-03-05 · in Voxile: A ray-traced game made in its own engine and programming language -
…C# for-loop over an array. Watch this space!) [1] https://github.com/louthy/csharp-monad [2] https://github.com/louthy/language-ext [3] https://em-tg.github.io/csborrow/
comment by louthy · 2026-01-05 · in Monads in C# (Part 2): Result -
I'm glad Paul Louth of https://github.com/louthy/language-ext/ is here in the comments. At this point basically everyone has been exposed to the concept of `Option/Result/Either/etc.`, and discussions typically end up revolving around the…
comment by mikemarsh · 2026-01-05 · in Monads in C# (Part 2): Result -
…y), (1, z), (2, a), (2, b)] [(3, y), (3, z), (4, a), (4, b)] Which I think passes your test. [1] https://github.com/louthy/language-ext/blob/main/Samples/Car...
comment by louthy · 2026-01-05 · in Monads in C# (Part 2): Result -
…in LINQ, `pure` in Haskell's Applicative, and `Pure` in language-ext's Applicative [2]. [1] https://github.com/louthy/language-ext/blob/main/LanguageExt... [2] https://github.com/louthy/language-ext/blob/main/LanguageExt...
comment by louthy · 2026-01-05 · in Monads in C# (Part 2): Result -
…program I use to send out the newsletters from my blog. Happy to answer any questions on it. [0] https://github.com/louthy/language-ext/ [1] https://paullouth.com/higher-kinds-in-c-with-language-ext/ [2]…
comment by louthy · 2026-01-05 · in Monads in C# (Part 2): Result -
Do you have a comparison to other libraries like https://github.com/louthy/language-ext Yours looks a lot more idiomatic to C# (hence acceptable for a mixed code base) but the above linked more "systematic". Not that I have used any or…
comment by oaiey · 2026-01-05 · in Monads in C# (Part 2): Result -
…can get in C#. It's certainly pushing the language, but is still elegant (in my eyes anyway). [1] https://github.com/louthy/language-ext [2] https://github.com/louthy/language-ext/blob/main/Samples/Car... [3]…
comment by louthy · 2025-10-16 · in LINQ and Learning to Be Declarative -
…to things like C#'s clever LINQ syntax). LanguageExt is a big part of some of those ecosystems: https://github.com/louthy/language-ext
comment by WorldMaker · 2025-08-19 · in Node.js is able to execute TypeScript files without additional configuration -
…half a million lines of code, ~7,000 stars, and ~25 million downloads. We are out there :) [1] https://github.com/louthy/language-ext
comment by louthy · 2025-07-30 · in .NET 10 Preview 6 brings JIT improvements, one-shot tool execution -
…on the patterns isn't pretty, but I'd take it over handwriting the full type name every time. [1] https://github.com/louthy/language-ext/
comment by louthy · 2025-07-19 · in C# Language Design Meeting for June 30th, 2025 -
…with table joins. Fairly niche, but query syntax is a great approximation of Haskell's do notation: https://github.com/louthy/language-ext/wiki/Thinking-Functio... EDIT: updated URL
comment by david_allison · 2025-05-21 · in “ZLinq”, a Zero-Allocation LINQ Library for .NET -
…logic and less well for things like APIs where there's not always a narrative you can tell. [1] https://github.com/louthy/language-ext [2] https://github.com/louthy/language-ext/blob/main/Samples/Car...
comment by louthy · 2025-03-11 · in What makes code hard to read: Visual patterns of complexity (2023) -
Doesn’t like my repo [1] “Failed to generate diagram. Please try again later.” [1] https://github.com/louthy/language-ext
comment by louthy · 2024-12-27 · in Show HN: Instantly visualize any codebase as an interactive diagram -
…is this game of 21/Pontoon [2]. I suspect most people won't have seen C# look like this! [1] https://github.com/louthy/language-ext/ [2] https://github.com/louthy/language-ext/blob/main/Samples/Car...
comment by louthy · 2024-11-26 · in Functional Programming Self-Affirmations -
…People told me I should have just used F#. Anyone familiar with both that can compare them? [1]: https://github.com/louthy/language-ext
comment by infogulch · 2024-11-13 · in What's New in F# 9 -
…Ah the standard "why don't you just use F#" line. I have a standard response to that now ;) https://github.com/louthy/language-ext/wiki/%22Why-don't-you...
comment by louthy · 2024-10-18 · in Net 9.0 LINQ Performance Improvements -
…of users. But the focus always seems to be narrowly targeted, which limits the potential. [1] https://github.com/louthy/language-ext/
comment by louthy · 2024-10-18 · in Net 9.0 LINQ Performance Improvements -
…I have developed [1]. But, unfortunately, I don't think I'll use it again for a pro project. [1] https://github.com/louthy/language-ext
comment by louthy · 2024-09-12 · in Why Haskell? -
…that support Linq syntax for non-ORM uses, too, such as System.Reactive.Linq and LanguageExt: https://github.com/louthy/language-ext/wiki/How-to-deal-with...
comment by WorldMaker · 2024-08-29 · in Google's new pipe syntax in SQL -
…in C#. And, if you want a load of pre-built ones, then my library language-ext will help [1] [1] https://github.com/louthy/language-ext/
comment by louthy · 2024-08-07 · in Official proposal for Type Unions in C# -
…the sooner they do it the better able they are to communicate with others in the FP community. [1] https://github.com/louthy/language-ext [2] https://www.nuget.org/packages/LanguageExt.Core
comment by louthy · 2024-01-20 · in Pipeline-Oriented Programming [video] -
…is for) implemented. Including an implementation of Haskell Pipes [2], with some examples [3] [1] https://github.com/louthy/language-ext [2] https://louthy.github.io/language-ext/LanguageExt.Core/Effec... [3]…
comment by louthy · 2024-01-20 · in Pipeline-Oriented Programming [video] -
▲ 4
Why don't you just use F#?story by bundie · 2023-09-19 · 0 comments
-
…means. You'll be enlightened. OOP people: not everything needs to be 'oriented' ;-) [1] https://github.com/louthy/language-ext/
comment by louthy · 2023-08-18 · in Railway Oriented Programming -
…(and higher kinds), but you can do a lot with LINQ and a good integrated library surface. [1] https://github.com/louthy/language-ext [2] https://louthy.github.io/language-ext/LanguageExt.Core/Effec... [3]…
comment by louthy · 2023-08-07 · in The combined power of F# and C# -
…to `Task<T>` which allows C# tasks to be used in the same way that Async is done in F#. [1] https://github.com/louthy/language-ext/blob/main/LanguageExt...
comment by louthy · 2023-07-05 · in How to think about async/await in Rust -
> [1] https://github.com/louthy/language-ext Cool library. I've had a few of these patterns in my Sasa library for years, but you've taken it to the Haskell extreme! Probably further than most C# developers could stomach. ;-) You might be…
comment by naasking · 2023-02-18 · in John Carmack on Functional Programming in C++ (2018) -
…games that don't agree (although I don't know exactly what kind of titles they're working on). [1] https://github.com/louthy/language-ext
comment by louthy · 2023-02-18 · in John Carmack on Functional Programming in C++ (2018) -
…type-checks, that's usually good enough. Of course at some point I do actually run the thing ;) [1] https://github.com/louthy/language-ext
comment by louthy · 2023-02-18 · in John Carmack on Functional Programming in C++ (2018) -
…// not executed from paymentId in processor.SendPayment(joshIban, olenaIban, 100) select paymentId; https://github.com/louthy/language-ext/wiki/Thinking-Functio...
comment by david_allison · 2022-11-08 · in Welcome to C# 11 -
…some rely on the runtime, like static interface methods. Records can be enabled like this [1] [1] https://github.com/louthy/language-ext/blob/main/LanguageExt...
comment by louthy · 2022-08-16 · in .NET 6 is now in Ubuntu 22.04 -
…a trade-off. Of course it isn't Haskell, but it's still possible to get 95% of the benefits. [1] https://github.com/louthy/language-ext
comment by louthy · 2022-08-06 · in Monad Confusion and the Blurry Line Between Data and Computation -
…implementation is here [3] [1] https://michael.steindorfer.name/publications/phd-thesis-eff... [2] https://github.com/louthy/language-ext/blob/main/LanguageExt... [3] https://github.com/louthy/language-ext/blob/main/LanguageExt...
comment by louthy · 2021-10-16 · in Implementing Hash Tables in C -
…couldn't imagine being a successful developer without a key understanding of these things. [1] https://github.com/louthy/language-ext
comment by louthy · 2021-10-16 · in Implementing Hash Tables in C -
…wouldn't have survived as a business without them being exceptional or going the extra mile. [1] https://github.com/louthy/language-ext
comment by louthy · 2021-09-22 · in Software projects need heroes? lessons learned from 1100 projects -
…Who knows. Still, I'd be more willing to allow my team to use it if I could train it myself. [1] https://github.com/louthy/language-ext/blob/main/LanguageExt...
comment by louthy · 2021-07-02 · in Copilot regurgitating Quake code, including sweary comments -
…though [1]. You might not be surprised to hear it isn't the first time I've been asked this :) [1] https://github.com/louthy/language-ext/wiki/%22Why-don't-you...
comment by louthy · 2021-07-02 · in Copilot regurgitating Quake code, including sweary comments -
…Then there's the grey area of licensing, which I feel has been totally brushed to one side. [1] https://github.com/louthy/language-ext
comment by louthy · 2021-07-02 · in Copilot regurgitating Quake code, including sweary comments -
…for microservices where we need the USP of Haskell (purity and strict domain modelling). [1] https://github.com/louthy/language-ext/
comment by louthy · 2021-04-09 · in A Brief F# Exploration -
…do some functional in C#. If you just need some ready-made monads, language-ext is the way to go: https://github.com/louthy/language-ext We tried to bring some functional ideas into our Unity3D codebase with help of these resources, it's…
comment by franknine · 2021-03-13 · in An Object-Oriented Language for the '20s -
…project while thinking in functions", etc.). You might also consider the LanguageExt guide itself: https://github.com/louthy/language-ext/wiki/Thinking-Functio...
comment by ryanjshaw · 2020-08-29 · in Inventing Monads -
…at the last possible opportunity. Exactly how it would work in a purely functional setting. [1 ] https://github.com/louthy/language-ext/wiki/Thinking-Functio...
comment by jbjohns · 2020-03-12 · in I Don't Use Classes -
…writing this on my phone atm, so I’ll do a fuller reply to your qs when I’m back in front of my PC https://github.com/louthy/language-ext/wiki/Code-generation
comment by louthy · 2020-03-10 · in Defunctionalisation: An underappreciated tool for writing good software -
…Interpret(y)), }; } [1] https://gist.github.com/louthy/54e216373d71b7fb4ceb5c619ea32... [2] https://github.com/louthy/language-ext/
comment by louthy · 2020-03-09 · in Defunctionalisation: An underappreciated tool for writing good software -
…the background build process in VS). All that's needed is a [Record] or [Union] attribute: [1] https://github.com/louthy/language-ext/wiki/Code-generation
comment by louthy · 2020-02-11 · in How Microsoft rewrote its C# compiler in C# and made it open source (2017) -
…is still one of the easiest languages to be productive in, with a world class tool chain. [1] https://github.com/louthy/language-ext
comment by louthy · 2020-02-05 · in C# Pattern Matching -
…but it is possible. It's also a shame LINQ can't be extended like computation expressions. [1] https://github.com/louthy/language-ext/blob/master/LanguageE...
comment by louthy · 2020-01-08 · in F# Data Type Providers in .Net Core (2018) -
…what is needed, and C# is your only option, then this will help [1] Disclaimer: I'm the author [1] https://github.com/louthy/language-ext/
comment by louthy · 2020-01-08 · in F# Data Type Providers in .Net Core (2018)