C++ Logo

std-proposals

Advanced search

Re: [std-proposals] [Proposal] switch for Pattern Matching

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Thu, 27 Apr 2023 19:20:04 +0300
On Thu, 27 Apr 2023 at 19:03, Михаил Найденов via Std-Proposals
<std-proposals_at_[hidden]> wrote:
> That's the issue, it is not different semantically or functionally. Sure there are nuances, but there are not two different tools that one might choose one over the other for a particular reason.

That's exactly what they are. One is a pattern matching facility, the
other is a forward-jumping goto that jumps into a ladder
of comparison results of a trivial type.

Received on 2023-04-27 16:20:18