How Rust and C++ See Strings
How We See Strings Rust C++ &str String &[u8] &[u8; N] Vec<u8> &u8 OsStr OsString Path PathBuf CStr CString &’ static str std::string std::wstring char * std::filesystem::path std::u16string std::stringstream std::ostringstream std::u32string std::wstringstream std::istringstream std::string_view std::vector<char> const std::string & str std::stringbuf boost::string_ref std::forward_list<char> std::list<char>
A woman representing Rust and a man representing C++ point at their very different collections of string-related types. The joke is that Rust presents a relatively compact list, while C++ has an overwhelming maze of overlapping and obscure string representations.
- @profunctor_io / 7002 2021-08-08
- Type
- image
- Size
- 800×592 · 60.8 KiB
- Mood
- sarcastic
- Language
- en
- Added