News for hackers. Stuff that matters.
Re:Why Isn’t F# the King of .NET? by mhomde on Monday September 19, 2016 @08:08AM (#12530688)
I generally like var, however one thing I've found to bite me in the ass occasionally is using var for results returned from asynchronous operations... and then forgetting to use await on it :)
Re:Why Isn’t F# the King of .NET? by PJDK on Monday September 19, 2016 @08:43AM (#12530940)
It doesn't completely solve the problem, but if you set CS1998 to be a compile time error rather than a warning it will help. This means methods marked "async" must have at least one "await".
Re:Why Isn’t F# the King of .NET? by mhomde on Monday September 19, 2016 @09:33AM (#12531276)
thanks for the tip!