Hadrian Tang

Results 569 comments of Hadrian Tang

@drvink Yes, dotnet/fsharp#457 is now fsharp/fslang-suggestions#472.

You're welcome. "shortDigits@54-2" -> "shortDigits@line54closure2" would be more understandable for beginners?

Can we emit spaces? `shortDigits @ line 54, closure 2`

I personally think returning NaN upon encountering is not helpful when nan is viewed as "missing data". Meanwhile, there are alternative expectations as seen here ![image](https://user-images.githubusercontent.com/19922066/172326161-0e2afd55-e1aa-439d-8ee2-0139df03d606.png) By `sort`, `nan` would...

Why does the proposal point to the one for throw expressions?

>The obvious route would be something like an implicit conversion on `string` to `ReadOnlySpan`. I'm not sure if that would work. Yes it does exist in .NET Core 2.1 (NOT...

https://visualstudiomagazine.com/Articles/2015/10/20/Text-Pattern-Search-Trie-Class-NET.aspx?m=1&Page=2 It states that a trie would be slower than a HashSet when searching entire strings. A trie would be faster if we are using pattern searching, but switches are...

@HaloFour @CyrusNajmabadi Only Figure 7 in the link is relevant to my point. The rest are irrelevant. I am talking about trie vs HashSet, not trie vs List or trie...

@CyrusNajmabadi How would cases with conditions play with the trie implementation? For example, ```cs switch(someReadOnlySpan) { case "\u0444": return 444; case var inSomeList when someList.Contains(inSomeList[0]): Console.Write(inSomeList[0]); return (int)inSomeList[0]; case "\u0456":...

Welp, that would be a new design guideline for me. Now, would anyone please champion this? :)