memesearch
Rust lacks C-style else-while

Rust lacks C-style else-while

Download Find similar pictures
Text on the meme
Yeah, else-if is cool and all but does your Rust have the else-while construction that C had since 1970? Yeah, I don't think so if (new_size <= da->capacity) { da->count = new_size; } else while (new_size > da->capacity) { da->capacity *= 2; }
What it means

A programming joke compares Rust with C by mockingly presenting an “else while” construction as an advantage C has had since 1970. The punchline is that the shown C code uses an unusual but valid control-flow combination, teasing language enthusiasts who argue over syntax and features. EN: A programming joke compares Rust with C by mockingly presenting an “else while” construction as an advantage C has had since 1970. The punchline is that the shown C code uses an unusual but valid control-flow combination, teasing language enthusiasts who argue over syntax and features.

Objects
Tags
Source
Type
image
Size
800×449 · 63.2 KiB
Mood
sarcastic
Language
en
Added