roles/extensions branch is not working
When I select the Roles/Extensions branch, I get a message that says connection lost, reconnecting... and the screen goes grey and doesn't come back.
When I look at the browser console, a 404 is returned for requests to the following URL. Could this be the cause?
https://slpublic.azureedge.net/cache/main/sl-b-dotnet-features-roles/a98330204b5d6e806f3b69ff241752d9d1c9ddc6c4e65c17f203dd3c69c92be1.json
Thanks for reporting! This one might be a bit tricky -- I'll take a look when I have a moment, but can't promise it will be soon.
I'm dying to know if this is valid C# 13:
using System;
Console.WriteLine(15.inch + 2.cm * 15.mm);
implicit extension TestUnits for int {
public double mm => (double) this;
public double inch => (double) this * (double) 25.4;
public double cm => (double) this * (double) 10;
}
Absolute game changer for fans of units.
any progress on this?
Want extension...
+1 interest feedback.
Since the extensions have been merged into the main branch, I will close this issue, hoping that we will be able to try them on the main branch in the future.
But main branch is also broken...
That is sad, but it is a separate issue. Leaving this issue open will not help to resolve the problem.
That is sad, but it is a separate issue. Leaving this issue open will not help to resolve the problem.
I think that only the maintainer should make such considerations. You opened the issue and the problem you verified is still present, without the maintainer telling you if e.g. a problem was solved and another problem emerged. There is currently no reason to close it.
@Cianti
I'm dying to know if this is valid C# 13:
using System;
Console.WriteLine(15.inch + 2.cm * 15.mm);
implicit extension TestUnits for int { public double mm => (double) this; public double inch => (double) this * (double) 25.4; public double cm => (double) this * (double) 10; }
Absolute game changer for fans of units.
FYI: This compiles!
var val = 100;
Console.WriteLine(val.mm); // Outputs: 1
public static class UnitExtensions
{
extension(int val)
{
public int mm => 1;
}
}