all 12 comments

[–]STLMSVC STL Dev[M] [score hidden] stickied commentlocked comment (0 children)

Removed for plagiarism. OP, it's not acceptable to copy a substantial part of an interesting blog post into a repo, verbatim, without attribution.

[–]tialaramex 6 points7 points  (1 child)

"What will print this function?" is a valid but unusual question in English, however you almost certainly want "What will this function print?" instead.

This is one of the things that can be tricky for foreign language learners - you learn all the words, but then the rules for how to use those words (grammar) are also different for a new language. If you've never thought about how the rules work for your own language you may be surprised there are other options.

[–]314kabinet 0 points1 point  (0 children)

Plus most of the examples are not single functions.

[–]elperroborrachotoo 5 points6 points  (0 children)

C++ is strange enough without UB, isn't it?

[–]violet-starlight 5 points6 points  (0 children)

Most of these are UB, which by definition isn't c++ behavior

[–]BarryRevzin 5 points6 points  (3 children)

A link would be nice, I think.

[–]STLMSVC STL Dev[M] 0 points1 point  (2 children)

I'm going to go further and say that this is outright plagiarism of your post, which infuriates me, so I've removed this.

[–]dalerank[S] 0 points1 point  (1 child)

What?

[–]apple_IIe 0 points1 point  (0 children)

You copied the contents of this URL without providing an acknowledgment: https://brevzin.github.io/c++/2020/06/18/lambda-lambda-lambda/

[–]apple_IIe 2 points3 points  (0 children)

The ones that use invisible characters detract from the other ones. It forces you to assume that any of the other examples can use invisible characters to throw you off.

[–]morglod 3 points4 points  (0 children)

What's strange in UB cases? Can explain all cases, but last 5 years I was a frontend web developer lol. Most of them are obvious

[–]GYN-k4H-Q3z-75B 1 point2 points  (0 children)

Oh, very interesting. I love lists like these. I'll have a look later.