News for hackers. Stuff that matters.

weirdwitch

Re:The End of Windows on Monday April 02, 2018 @11:08AM (#16735102)
Can you point me to the console version of Dota 2?
Re:Rust needs to run, and be easy to use, on every platform on Thursday March 08, 2018 @02:22PM (#16546865)
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.

Re:Rust needs to run, and be easy to use, on every platform on Thursday March 08, 2018 @02:17PM (#16546816)
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.

Re:Rust needs to run, and be easy to use, on every platform on Thursday March 08, 2018 @01:44PM (#16546562)
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)
Re:World Leaders on Twitter on Friday January 05, 2018 @05:07PM (#16082160)
After many many decades of despicable leaders and policies, surely you have to conclude that the people themselves must be despicable?
Re:World Leaders on Twitter on Friday January 05, 2018 @04:56PM (#16082063)
How do racist slurs and threatening to murder millions of people "advance the global, public conversation"?
Sorry there may be a cultural gap here. I'm not familiar with that phrase at all.
Can you explain what this means?