HNHacker News
TopNewBestAskShowJobs

weirdwitch

26 karma · joined December 6, 2017

submissionscomments
weirdwitch··on The End of Windows
Can you point me to the console version of Dota 2?
weirdwitch··on Rust needs to run, and be easy to use, on every platform
I completely agree.

Path/PathBuf have better names, but the distinction still isn't immediately obvious.

String/str is the cause of so much confusion.

weirdwitch··on Rust needs to run, and be easy to use, on every platform
Anything implemented for &str is automatically implemented for String, because String implements Deref<Target=str>.

Most useful "String" methods are actually &str methods that you get access to through that deref trait.

Dereferencing a String doesn't return a raw pointer, I'm not sure where you got that idea.

weirdwitch··on Rust needs to run, and be easy to use, on every platform
No thanks. Rust made the right call by distinguishing between owned (String) and borrowed (str) strings. Even C++ is moving in that direction now, by finally adding string_views (https://en.cppreference.com/w/cpp/string/basic_string_view)
weirdwitch··on World Leaders on Twitter
After many many decades of despicable leaders and policies, surely you have to conclude that the people themselves must be despicable?
weirdwitch··on World Leaders on Twitter
How do racist slurs and threatening to murder millions of people "advance the global, public conversation"?
weirdwitch··on Intentional Fire-Spreading by “Firehawk” Raptors in Northern Australia
Sorry there may be a cultural gap here. I'm not familiar with that phrase at all.
weirdwitch··on Intentional Fire-Spreading by “Firehawk” Raptors in Northern Australia
Can you explain what this means?