Skip to content(if available)orjump to list(if available)

C++26: A Placeholder with No Name

C++26: A Placeholder with No Name

2 comments

·January 8, 2025

agumonkey

Makes me wonder when '_' was first used as a token to denote unused information. Prolog ? ML ?

SideburnsOfDoom

See c#:

"A discard communicates intent to the compiler and others that read your code: You intended to ignore it.

You indicate that a variable is a discard by assigning it the underscore (_) as its name."

https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...

2020: http://dontcodetired.com/blog/post/Variables-We-Dont-Need-No...