C++ Logo

std-proposals

Advanced search

Re: [std-proposals] [PXXXXR0] Add a New Keyword `undecl`

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Wed, 10 Dec 2025 04:52:40 +0100
Reusing a name may be good or bad, e.g. macro code, copy&repeated paste of snippets of code with a variable named 'temp'.   But beside reusing the name, undeclaring a variable, when it is no longer needed can be good.   -----Ursprüngliche Nachricht----- Von:codusnocturnus via Std-Proposals <std-proposals_at_[hidden]> Gesendet:Mi 10.12.2025 02:45 Betreff:Re: [std-proposals] [PXXXXR0] Add a New Keyword `undecl` An:std-proposals_at_[hidden]; CC:codusnocturnus <codusnocturnus_at_[hidden]>; The only motivation I can discern from the paper is to reuse a name with a different type/meaning, which seems to run counter to every coding guideline I’ve ever seen.  It really seems like the existing solutions (using a different name, like a1 and a2, or an enclosing scope) are better in every way.   Sent from Proton Mail for iOS. -------- Original Message -------- On Tuesday, 12/09/25 at 17:23 wjf via Std-Proposals <std-proposals_at_[hidden] <mailto:std-proposals_at_[hidden]> > wrote: see attachment   <http://thirdqq.qlogo.cn/ek_qqapp/AQNPOicdlIgbG9Ribmfj8EKjTG2hwBlicwibL4stQmE6UNEQ3eh3aQCoFUzN0k1xGg/0> wjf wjf_at_[hidden]   -- Std-Proposals mailing list Std-Proposals_at_[hidden] https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2025-12-10 04:07:20