Hacker News new | ask | show | jobs
by ultrablack 670 days ago
You could have written the same article about C#.
2 comments

Yes, I definitely could have. But I don't know C#, so that would have been an awful blog post. :D
Indeed, this article would read just as well after applying s/\bgo\b/C#/ig, or should I say:

    Regex.Replace(articleText, @"\bgo\b", "C#", RegexOptions.IgnoreCase);
Or indeed most general purpose languages, which the article itself mentions.
The C#'s regex engine would have run circles around Go's here though while doing so :)

https://github.com/BurntSushi/rebar?tab=readme-ov-file#summa...