|
|
|
|
|
by WhyNotHugo
505 days ago
|
|
I peeked at the code for gethostname in ripgrep, and it's nice and straightforward. Much like op said here; we have a culture of "don't write unsafe code under any circumstance", and we then pull in a dependency tree for a single function that's relatively safe to contain. It solves the problem quickly, but at a higher price. BTW, thanks for ripgrep. I don't actually use it, but I've read through different portions of the code over recent months and it's some very clean and easy to understand code. Definitely a good influence. |
|