09/04/2026
With unnamed variables, you don’t have to name a variable you don't plan to use.
You can write _ instead. Nothing goes into scope, so nobody can read it later. Works on locals, catch parameters, lambda parameters, and patterns. Not fields.
codebysophy shares the details.
Learn more here: https://social.ora.cl/6189B11ynV