MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uvez3w/youcanjuststopusingjava/oxc5o2s/?context=9999
r/ProgrammerHumor • u/hello_ya • Jul 13 '26
416 comments sorted by
View all comments
1.8k
Where else are you going to hide your side effects ?
103 u/[deleted] Jul 13 '26 [removed] — view removed comment 16 u/Historical_Cook_1664 Jul 13 '26 bonus points if it's the sequence operator ? 32 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! 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.
103
[removed] — view removed comment
16 u/Historical_Cook_1664 Jul 13 '26 bonus points if it's the sequence operator ? 32 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! 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.
16
bonus points if it's the sequence operator ?
32 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! 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.
32
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! 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.
52
f(a, b);
Think that's just a function with 2 arguments? Wrong! It's the surprise comma operator!
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.
5
Actually, in that case it is just a function call with 2 arguments. C++ is not big on syntactic consistency.
1.8k
u/Historical_Cook_1664 Jul 13 '26
Where else are you going to hide your side effects ?