top | item 45480299

(no title)

grumpyprole | 4 months ago

> C# is, imo, the best cross platform GC language. I really can't think of anything that comes close

How about F#? Isn't F# mostly C# with better ergonomics?

discuss

order

raincole|4 months ago

Personally I love F#, but I feel the community is probably even smaller than OCaml...

gixco|4 months ago

I once got a temporary F# role without any F# experience simply by having 7 YoE with C# and the knowledge that F# exists.

As much as I'd like to do more with it, the "just use F#" idea flaunted in this thread is a distant pipe dream for the vast majority of teams.

denismenace|4 months ago

He means the runtime ".NET CLR". They have the same runtime.

actionfromafar|4 months ago

It is but in practice it’s very hard to find programmers for it.

Xss3|4 months ago

Lmao, functional programming is far from ergonomic

grumpyprole|4 months ago

F# is hardly modern functional programming. It's more like a better python with types. And that's much more ergonomic than C#.

CharlieDigital|4 months ago

Exactly what I've observed in practice because most devs have no background in writing functional code and will complain when asked to do so.

Passing or returning a function seems a foreign concept to many devs. They know how to use lambda expressions, but rarely write code that works this way.

We adopted ErrorOr[0] and have a rule that core code must return ErrorOr<T>. Devs have struggled with this and continue to misunderstand how to use the result type.

[0] https://github.com/amantinband/error-or

samus|4 months ago

That really depends on your preferred coding style.

physPop|4 months ago

honestly this sounds like you've never really done it. FP is much better for ergonomics, developer productivity, correctness. All the important things when writing code.