Re:Go is my hammer, and everything is a nail
by ultrablack on Monday August 12, 2024 @09:50AM
(#41224344)
You could have written the same article about C#.
[ Parent
| on HN ]
Re:Go is my hammer, and everything is a nail
by markusw on Monday August 12, 2024 @09:56AM
(#41224394)
Yes, I definitely could have. But I don't know C#, so that would have been an awful blog post. :D
Re:Go is my hammer, and everything is a nail
by xnorswap on Monday August 12, 2024 @10:01AM
(#41224453)
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.
Re:Go is my hammer, and everything is a nail
by neonsunset on Monday August 12, 2024 @11:44AM
(#41225756)
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...