C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Floating an idea: int main(std::span<std::string_view> args)

From: Jarrad Waterloo <descender76_at_[hidden]>
Date: Mon, 9 Sep 2024 10:11:28 -0400
Think too of the poor beginner programmers who don't need to be messing
with pointers on day one, hour one but still have a need for their beginner
programs to be configurable. The children man, think of the children! Stop
giving them scorpions when all they ask for is a slice of bread.



On Mon, Sep 9, 2024 at 7:44 AM Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On Saturday 7 September 2024 14:41:43 GMT-7 Andrey Semashev via
> Std-Proposals
> wrote:
> > cstring_view also aren't there, unless you're willing to mandate its
> > binary representation as a single pointer and legalize type punning.
>
> Right.
>
> But a main(std::span<std::cstring_view>) syntax that implements that by
> compiler magic would be more acceptable, as the runtime and stack space
> cost
> are O(1). Anyway, <session> is far more interesting.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel DCAI Platform & System Engineering
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2024-09-09 14:11:44