Petr Onderka

Results 93 comments of Petr Onderka

@CyrusNajmabadi > > it is a common mathematical operation > > Citation? :) [API Port telemetry says that `Math.Pow()` is used in 11 % of apps.](https://apisof.net/catalog/System.Math.Pow(Double,Double)) Not sure if that...

@bartonjs I think that having outdated C# examples is worse than being inconsistent. I would be fine with updating examples for other classes or for the other languages (where possible),...

Would it be feasible to introduce the ability of a type to forbid using `Monitor` on it into the runtime? Let's say this feature would be enabled by annotating the...

@HaloFour I meant that the compiler *would* use `Monitor`, but the implementation of `Monitor.Enter` would detect that the type of the object is one of the annotated ones and would...

@alrz > In an argument list it does affect binding (because of overload resolution) Do you have an example? I tried [a trivial example](https://tryroslyn.azurewebsites.net/#f:r/MYGwhgzhAEDC0G8CwAoa7oDcD2BLAJtALIAUuAdgC7RgCUiAvqhlnoaRdWADTSfQAjegiZoMOAsTAUSw5iwykALACZutANzz0ohkA===) of adding the trailing comma in...

I don't think I like the `in set` syntax, it's too much of a special case for new syntax to be added just for that. For the sequence case, what...

> iterating over a sequence may not be desirable because of overheads of involving LINQ in these simplest cases I guess I wasn't clear: my suggestion was to use *a...

I'm a bit confused about [this part of the proposal](https://github.com/dotnet/csharplang/blob/master/proposals/async-method-builders.md#drawbacks): > The syntax for applying such an attribute to a method is verbose. This is an advanced feature, but a...

@RikkiGibson To me, that example says that since a new kind of accessibility is being added, it needs a new keyword, that can then be used everywhere. And `private internal`...