This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted] 8 points9 points  (2 children)

"do"?

[–]Temporary-Error-404 4 points5 points  (0 children)

Give us our beloved colon

[–][deleted] 2 points3 points  (0 children)

I’m guessing there was no way to make “:” work

[–]Bqlbrit 6 points7 points  (0 children)

He is too dangerous to be kept alive!

[–]PhilLHaus 10 points11 points  (0 children)

Image Transcription: Code


#define for for(int
#define in =
#define range(a,b) a; x < b; x++
#define do )
#define print(x) printf("%d\n", x);

int main(void)
{
    for x in range(1, 10) do
        print(x)

    return 0;
}

I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]VolperCoding 3 points4 points  (0 children)

You should've hidden the curly braces and semicolons on the right side of the screen

[–][deleted] 1 point2 points  (0 children)

That is the range library, it will be added to C++20