| ▲ | mrsmrtss 21 hours ago | |
> I favor a more functional style of programming and C# ends up making everything 5 times more verbose than Kotlin. As if you can't program C# functional style. | ||
| ▲ | LelouBil 2 hours ago | parent | next [-] | |
Sorry, I mean that writing functional code in C# is way more verbose than in Kotlin. C# is already more verbose because it lacks things like union types (and so you need to have a fallback branch in every switch) and for example everything needs to be nested in a class. Then you also have the fact that there is no "val" keyword (which makes things clearer imo) and the fact that it's generics type inferencing is only based on method arguments, which really adds a lot of noise to almost all generic functions. I was using LanguageExt [0] in C# and I am now using Arrow [1] in Kotlin, and while LanguageExt is really nice for addressing some C# shortcomings, for me this is night and day. | ||
| ▲ | thot_experiment 16 hours ago | parent | prev [-] | |
> As if you can't program C# functional style. This, I was really impressed recently when I met a C# dev who was also a programmer (as opposed to your standard C# SaaS dev who just copy pasted from the framework docs and stack overflow and was fully automated by Claude in 2025) and he showed me how nice the language has gotten since I last used it over a decade ago when it was just Microslop Java. They've really put in work and it has a lot of great functional constructs now. | ||