C++ Logo

sg7

Advanced search

Re: [isocpp-sg7] P0707

From: Ivan Čukić <cpplists_at_[hidden]>
Date: Tue, 22 Oct 2024 20:20:37 +0200
> > FWIW, I like the `class(things...)` syntax. It doesn't require innovation,
> > is straightforward, and free of obstacles.
>
> Very much agreed.

To me, this visually looks better than @annotation, but feels overly narrow/
restricted.

It covers classes, but, for example, P3294 also talks about
    consteval { property("author", ^std::string); }
which could also benefit from a similar syntax sugar to become
    @property std::string title;
where the (things...) syntax would not be easily applied.

I haven't followed this closely (was away for a long time), so I might be
missing something.

Cheers,
Ivan

Received on 2024-10-22 18:20:44