Date: Tue, 24 Jun 2025 16:04:24 +0200
On Tue, Jun 24, 2025 at 3:49 PM Peter Bindels <dascandy_at_[hidden]> wrote:
>
>
> On Tue, Jun 24, 2025 at 3:30 PM Simon Schröder via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
>
>>
>> On Tue, Jun 24, 2025 at 3:01 PM Peter Bindels via Std-Proposals <
>> std-proposals_at_[hidden]> wrote:
>>
>>> and ideally output documentation with C++26 reflection.
>>>
>>
>> I also thought about reflection to get documentation from (user-defined)
>> attributes. Can we already write to files in compile time code?
>>
>
> You can create code at compile time, that then outputs documentation when
> run. It's a minor difference but IMO not impactful - and arguably better.
> You can reflect on structs used in a web server and output Swagger data for
> them, and be guaranteed that your website and the swagger "file" in it are
> the same.
>
I'd prefer to generate documentation at compile time, but could certainly
live with running my app in a specific way to output it at runtime. It
seems that Swagger could be the JSON output I was talking about (or YAML,
but I dislike YAML).
>
>
> On Tue, Jun 24, 2025 at 3:30 PM Simon Schröder via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
>
>>
>> On Tue, Jun 24, 2025 at 3:01 PM Peter Bindels via Std-Proposals <
>> std-proposals_at_[hidden]> wrote:
>>
>>> and ideally output documentation with C++26 reflection.
>>>
>>
>> I also thought about reflection to get documentation from (user-defined)
>> attributes. Can we already write to files in compile time code?
>>
>
> You can create code at compile time, that then outputs documentation when
> run. It's a minor difference but IMO not impactful - and arguably better.
> You can reflect on structs used in a web server and output Swagger data for
> them, and be guaranteed that your website and the swagger "file" in it are
> the same.
>
I'd prefer to generate documentation at compile time, but could certainly
live with running my app in a specific way to output it at runtime. It
seems that Swagger could be the JSON output I was talking about (or YAML,
but I dislike YAML).
Received on 2025-06-24 14:05:05