3 ms·
See c#: "A discard communicates intent to the compiler and others that read your code: You intended to ignore it. You indicate that a variable is a discard by
by SideburnsOfDoom 2y ago
See c#:
"A discard communicates intent to the compiler and others that read your code: You intended to ignore it.
You indicate that a variable is a discard by assigning it the underscore (_) as its name."
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/discards https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...
2020: http://dontcodetired.com/blog/post/Variables-We-Dont-Need-No-Stinking-Variables-C-Discards http://dontcodetired.com/blog/post/Variables-We-Dont-Need-No...
- tempodox 2y agoYep, Microsoft took only almost 50 years to do what Prolog could do in 1971, and the C++ standards committee took ~5 years longer.