News for hackers. Stuff that matters.
Re:Why F#? by pjc50 on Tuesday April 01, 2025 @11:08AM (#43547704)
I did try that initially and got

    <source>(5,1): error CS9176: There is no target type for the collection expression.
.. which I took to mean that, because .Select is an extension method on IEnumerable, the engine was unable to infer whether the collection should be a list, array, or some other type of collection.

It seems reasonable to have it default to Array if it's ambiguous, maybe there's a downside I'm not aware of.

Re:Why F#? by DeathArrow on Wednesday April 02, 2025 @08:03AM (#43555767)
Maybe you can submit a proposal/issue to the C# language team? I'd vote for it!