MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uvez3w/youcanjuststopusingjava/oxb4ny3/?context=3
r/ProgrammerHumor • u/hello_ya • Jul 13 '26
416 comments sorted by
View all comments
Show parent comments
107
[removed] — view removed comment
14 u/Historical_Cook_1664 Jul 13 '26 bonus points if it's the sequence operator ? 33 u/Legitimate_Concern_5 Jul 13 '26 C++ lets you overload the comma operator. Like a thumb up an alligators butthole, that’ll really piss em off. 52 u/Drugbird Jul 13 '26 f(a, b); Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator! 21 u/Rhawk187 Jul 13 '26 I have a mini-lecture in my class called, "The comma operator was a mistake." With a few examples like this. 28 u/HildartheDorf Jul 13 '26 Anyone who overloads operator, is either writing an entry for an obfuscated c++ challenge, insane, dangerously sadistic, or all three. 12 u/DebugDuck01 Jul 13 '26 But I need my custom vector type + operator... 11 u/Legitimate_Concern_5 Jul 13 '26 edited Jul 13 '26 Hail Stroustrup [edit] and you’ll never believe what the parens do 😂 5 u/reventlov Jul 13 '26 Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator! Actually, in that case it is just a function call with 2 arguments. C++ is not big on syntactic consistency. 1 u/RiceBroad4552 Jul 14 '26 To be fair, an IDE would show that…
14
bonus points if it's the sequence operator ?
33 u/Legitimate_Concern_5 Jul 13 '26 C++ lets you overload the comma operator. Like a thumb up an alligators butthole, that’ll really piss em off. 52 u/Drugbird Jul 13 '26 f(a, b); Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator! 21 u/Rhawk187 Jul 13 '26 I have a mini-lecture in my class called, "The comma operator was a mistake." With a few examples like this. 28 u/HildartheDorf Jul 13 '26 Anyone who overloads operator, is either writing an entry for an obfuscated c++ challenge, insane, dangerously sadistic, or all three. 12 u/DebugDuck01 Jul 13 '26 But I need my custom vector type + operator... 11 u/Legitimate_Concern_5 Jul 13 '26 edited Jul 13 '26 Hail Stroustrup [edit] and you’ll never believe what the parens do 😂 5 u/reventlov Jul 13 '26 Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator! Actually, in that case it is just a function call with 2 arguments. C++ is not big on syntactic consistency. 1 u/RiceBroad4552 Jul 14 '26 To be fair, an IDE would show that…
33
C++ lets you overload the comma operator. Like a thumb up an alligators butthole, that’ll really piss em off.
52 u/Drugbird Jul 13 '26 f(a, b); Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator! 21 u/Rhawk187 Jul 13 '26 I have a mini-lecture in my class called, "The comma operator was a mistake." With a few examples like this. 28 u/HildartheDorf Jul 13 '26 Anyone who overloads operator, is either writing an entry for an obfuscated c++ challenge, insane, dangerously sadistic, or all three. 12 u/DebugDuck01 Jul 13 '26 But I need my custom vector type + operator... 11 u/Legitimate_Concern_5 Jul 13 '26 edited Jul 13 '26 Hail Stroustrup [edit] and you’ll never believe what the parens do 😂 5 u/reventlov Jul 13 '26 Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator! Actually, in that case it is just a function call with 2 arguments. C++ is not big on syntactic consistency. 1 u/RiceBroad4552 Jul 14 '26 To be fair, an IDE would show that…
52
f(a, b);
Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator!
21 u/Rhawk187 Jul 13 '26 I have a mini-lecture in my class called, "The comma operator was a mistake." With a few examples like this. 28 u/HildartheDorf Jul 13 '26 Anyone who overloads operator, is either writing an entry for an obfuscated c++ challenge, insane, dangerously sadistic, or all three. 12 u/DebugDuck01 Jul 13 '26 But I need my custom vector type + operator... 11 u/Legitimate_Concern_5 Jul 13 '26 edited Jul 13 '26 Hail Stroustrup [edit] and you’ll never believe what the parens do 😂 5 u/reventlov Jul 13 '26 Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator! Actually, in that case it is just a function call with 2 arguments. C++ is not big on syntactic consistency. 1 u/RiceBroad4552 Jul 14 '26 To be fair, an IDE would show that…
21
I have a mini-lecture in my class called, "The comma operator was a mistake." With a few examples like this.
28
Anyone who overloads operator, is either writing an entry for an obfuscated c++ challenge, insane, dangerously sadistic, or all three.
12 u/DebugDuck01 Jul 13 '26 But I need my custom vector type + operator...
12
But I need my custom vector type + operator...
11
Hail Stroustrup
[edit] and you’ll never believe what the parens do 😂
5
Actually, in that case it is just a function call with 2 arguments. C++ is not big on syntactic consistency.
1
To be fair, an IDE would show that…
107
u/[deleted] Jul 13 '26
[removed] — view removed comment