HiveBrain v1.2.0
Get Started
← Back to all entries
patterncppCritical

What is this smiley-with-beard expression: "<:]{%>"?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
withsmileybeardthiswhatexpression

Problem

I came across the following program, which compiles without errors or even warnings:

int main(){
  ; // smile!
}


Live example.

What does the program do, and what is that smiley-expression?

Solution

That's an empty lambda using a digraph disguise. Normal lambdas don't have beards.

Context

Stack Overflow Q#15736282, score: 301

Revisions (0)

No revisions yet.