3,089 karma · joined Aug 8, 2011 (15y ago) · 958 submissions
comment 1w ago · link · parent
HashSet<string> names =
[with(StringComparer.OrdinalIgnoreCase), "Alice", "ALICE", "Bob"];
Console.WriteLine(names.Count); // Writes "2"
It's "good" that we have a hashset with syntactically four entries and no error/warning about duplicate keys and it ends up with just two and that there's an entry "with(...)" that's not actually an entry. And that's even before we get into how something called a StringComparer is providing a hash function and how OrdinalIgnoreCase is an underdefined upper-casing system rather than a true case-folding one, even if those are historical.comment 3w ago · link · parent
comment 1mo ago · link · parent
Seeing a correctness issue that makes Go not memory safe in some circumstances warrants questioning whether it is memory safe. On balance, you might say it is, but to constantly tell people they are wrong for saying otherwise is policing a shared term.
comment 2mo ago · link · parent
The intersection would be the operations supported by all platforms and so would not have gaps.
comment 2mo ago · link · parent
https://en.wikipedia.org/wiki/Garbage_collection_(computer_s...
https://users.rust-lang.org/t/reference-counting-garbage-col...
comment 3mo ago · link · parent
And then the fix is to hardcode a bunch of special cases which again depend on exactly which version of Unicode is in use, and so will break again in the same way in future, rather than just using the right version?
comment 3mo ago · link · parent
comment 3mo ago · link · parent
Also, it's not guaranteed that an engine implementing regular expressions will have O(n) time complexity - a backtracking engine can still have much worse performance on formal regular expressions.
comment 7mo ago · link · parent
comment 7mo ago · link · parent