Unsafe Block Syntax Comparison
Unsafe block syntax in Rust unsafe { ... } Unsafe block syntax in C++ int main(int argc, char* argv[]) { ... }
The meme compares unsafe block syntax in Rust with the familiar main function syntax in C++. The joke is that Rust’s unsafe block looks much simpler and more concise, while C++ requires a full main function wrapper for the equivalent code context.
code window / окно с кодомRust code / код на RustC++ code / код на C++yellow background / жёлтый фонdark blue panel / тёмно-синяя панельred window button / красная кнопка окнаyellow window button / жёлтая кнопка окнаgreen window button / зелёная кнопка окнаcurly braces / фигурные скобкиtext code / текстовый код
- @profunctor_io / 9449 2023-11-10
- @ithueti / 10844 2023-11-10
- Type
- image
- Size
- 800×681 · 36.6 KiB
- Mood
- саркастичный
- Language
- en
- Added