memesearch
C++ Long Return vs Go Multiple Results

C++ Long Return vs Go Multiple Results

Download Find similar pictures
Text on the meme
Can easily do the same in C++. For example, here's a function that returns two 'long' objects: #cpp long long get_two_longs() { return 10011, 15011; } In Go, a function can return MULTIPLE results?! This is mindblowing 🤯 func swap(x, y string) (string, string) { return y, x } func main() { a, b := swap("hello", "world") fmt.Println(a, b) }
What it means

A programming meme contrasts C++'s awkward-looking way of returning two long values with Go's ability to return multiple values directly from a function. The joke is that a basic language feature feels astonishing when switching from C++ to Go. EN: A programming meme contrasts C++'s awkward-looking way of returning two long values with Go's ability to return multiple values directly from a function. The joke is that a basic language feature feels astonishing when switching from C++ to Go.

Objects
Tags
Source
Type
image
Size
568×800 · 53.0 KiB
Mood
развлекательный, удивлённый
Language
en
Added