« first day (4044 days earlier)      last day (898 days later) » 

2:39 AM
Removing broken bolt in correct way takes only 10 minutes
 
mr5
3:10 AM
@Wietlol every time you didn't ask Wietlol for advise, you are 1 week away from losing your job.
 
[juanvan] Every Null Reference exception can turn into a 3 day read if xxx that's all I got so far.
 
3:52 AM
 
 
3 hours later…
mr5
7:21 AM
Doesn't look good if it's pure dark colors.
 
7:36 AM
Why? It looks good
 
7:50 AM
"if it's pure dark colors"
I assumed something more like this
 
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
[Squirrel in Training] i don't get it wiet
 
8:36 AM
pure dark can only on pure background, it is kind of navigation bar, it cant be #000
 
 
2 hours later…
10:51 AM
thank you C#
 
\[**[Squirrel in Training](https://discord.gg/PNMq3pBSUe)**] Why?
it makes sense
[Squirrel in Training] YOu gotta say where T : class
 
mr5
11:09 AM
@Wietlol use default
instead of null for generics
 
11:26 AM
hey. So let's see this> https://rules.sonarsource.com/csharp/RSPEC-4457

and a somewhat modernized pattern>
https://stackoverflow.com/a/59191520/1859959
I was thinking about making it ValueTask
if I make the ValueTask async will it make the computation delayed?
 
12:26 PM
@Botler but it should work for both classes and structs
 
12:39 PM
[Squirrel in Training] Structs are non-nullable silly billy
 
1:04 PM
that is why I use 'T?'
silly furball
 
 
3 hours later…
3:35 PM
[juanvan] Unless they have a default ctor
[juanvan] you can also setup defaults on the properties
[juanvan] can we call them properties now?
[juanvan] All these new struct things
[milleniumbug] fairly sure you can't have a struct with a default ctor
[milleniumbug] unless something changed in the last 3 years
[milleniumbug] default(T) for T which is a struct has to yield a struct with all-default fields
 
except if T = int? perhaps?
 
default(MyStruct) does indeed return a struct with all default fields despite the struct has custom constructors
 
private static T? Default<T>() =>
    default;

private static async Task Main(String[] args)
{
    Int32 d1 = Default<Int32>();
    String? d2 = Default<String>();
    Int32? d3 = Default<Int32?>();
    String? d4 = Default<String?>();

    Console.WriteLine($"d1 = {d1}");                        // 0
    Console.WriteLine($"d2 = {d2 ?? "null"}");              // null
    Console.WriteLine($"d3 = {d3?.ToString() ?? "null"}");  // null
    Console.WriteLine($"d4 = {d4 ?? "null"}");              // null
 
at least this works correctly
 
3:48 PM
Exactly as expected. What does your Default<T> do differently?
 
nothing
> this works correctly
 
Wait then why?
 
the initial surprise was that null is not a valid value for T? even though the type literally means "nullable T"
 

« first day (4044 days earlier)      last day (898 days later) »