|
|
|
|
|
by CmonDev
4328 days ago
|
|
F# is a nice language, but not a very necessary one (especially given the lack of tooling). 1) Simply write a quick extension method (not ideal but not a reason to switch languages): var xs = r.YourExtensionMethod<int>(rr => rr.GetInt(0)).ToList();
2) Simply use the appropriate built-in method: int f(string x)
{
int number; /*Will be not necessary in C#6.*/
return Int32.TryParse(value, out number) ? numeber * 3 : -1;
}
3) It's a matter of taste. Not a bad feature, but not a killer one either. |
|
But it sure all adds up.
Switching for a codebase might not be a wise move for many reasons. But writing new code doesn't have those excuses.
Actually workflows are the closest to a "killer" feature but C# took the most popular, async, and hard-coded it in.