3 ms·
The compiler does warn when you discard a value, but I assume a C# notebook is something like Jupyter? It is probably a special case in that environment. There
by goto11 6y ago
The compiler does warn when you discard a value, but I assume a C# notebook is something like Jupyter? It is probably a special case in that environment.
There is Comparer.Create convenience method which creates an IComparer instance from a lambda. But yeah it is a workaround.
- np_tedious 6y agoSounds fine to me. Unused valuable will get you some squiggle warnings in the editor, but not in a notebook. As far as "language gotcha" articles go this is pretty weak IMO
- dcanelhas 6y agoThe semicolon at the end of a statement is possibly matlab-inspired.
- siwatanejo 6y ago> The compiler does warn when you discard a value The C# compiler doesn't; the F# compiler does.