C++ Logo

std-discussion

Advanced search

Re: With `co_return` and `return` diff symbols harms template generic programming

From: Sopl'Wang <sopl.wang_at_[hidden]>
Date: Thu, 19 Dec 2019 03:47:38 +0800
> For consideration in C++23, it needs to prove why an *additional* syntax

YES understand. Just now I can only argue functions need share syntax with
coroutines because "Subroutines (functions) are special cases of
coroutines", to empower us write generic code for them (like pointer
generalized to iterator, function to functor, array to container, etc.,
many amazing STL abstractions).

--
soplwang
Thiago Macieira via Std-Discussion <std-discussion_at_[hidden]>
于2019年12月19日周四 上午2:22写道:
> On Wednesday, 18 December 2019 09:29:59 PST Sopl'Wang via Std-Discussion
> wrote:
> > If we want protect C++ core value on template and generic programming, I
> > suggest committee reconsider P1485R1 in c++20 or 23.
>
> It's too late for C++20. For consideration in C++23, it needs to prove why
> an
> *additional* syntax (not a replacement, since C++20 will be out) is
> beneficial
> and will not unduly hurt teachability.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>    Software Architect - Intel System Software Products
>
>
>
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>

Received on 2019-12-18 13:50:16