Deutsch   English   Français   Italiano  
<103h604$2s3vq$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Trip report: June 2025 ISO C++ standards meeting (Sofia,
Date: Wed, 25 Jun 2025 15:52:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <103h604$2s3vq$1@dont-email.me>
References: <103a7kk$qri0$2@dont-email.me> <103gd2r$2lqoe$1@dont-email.me> <20250625164839.000004b5@yahoo.com> <103h2sf$2rb11$1@dont-email.me> <ZIU6Q.130533$wybc.75864@fx17.iad>
Injection-Date: Wed, 25 Jun 2025 17:52:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d6aac25d725011f072d6596e71c49de1";
	logging-data="3018746"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19DDKIk9i71Qa6nm8xK4TOV"
Cancel-Lock: sha1:HkZ3OppNDTIVaWqsWzK2DgnTrrE=

On Wed, 25 Jun 2025 15:37:29 GMT
scott@slp53.sl.home (Scott Lurndal) gabbled:
>Muttley@dastardlyhq.com writes:
>>On Wed, 25 Jun 2025 16:48:39 +0300
>>Michael S <already5chosen@yahoo.com> gabbled:
>>>On Wed, 25 Jun 2025 08:47:23 -0000 (UTC)
>>>Muttley@dastardlyhq.com wrote:
>>>
>>>> On Sun, 22 Jun 2025 19:37:39 -0500
>>>> Lynn McGuire <lynnmcguire5@gmail.com> gabbled:
>>>> >"Trip report: June 2025 ISO C++ standards meeting (Sofia, Bulgaria)"
>>>> >by Herb Sutter
>>>> >  
>>>>
>>>>https://herbsutter.com/2025/06/21/trip-report-june-2025-iso-c-standards-meet
>in
>>>g
>>>> >-sofia-bulgaria/
>>>> >
>>>> >"Today marks a turning point in C++: A few minutes ago, the C++ 
>>>> >committee voted the first seven (7) papers for compile-time
>>>> >reflection   
>>>> 
>>>> What for? What exactly does it bring to the table except more
>>>> complexity in an already overcomplex language?
>>>> 
>>>
>>>Ability to serialize structures (for example, to JASON or XML) in generic
>way.
>>
>>I read something about that but it made no sense to me. Seemed to be a case
>>complex constexpr functions to do it with the fields and values hard coded
>>(obviously or no constexpr), but like most constexpressions IME, you can just
>>work out the result beforehand and hard code *that* instead.
>>
>>Still, if the standards committee want to make the C++ learning curve for
>>beginners even steeper then they're going to succeed beyond their wildest
>>dreams. No wonder a lot of CS courses ditched C++ (and to be fair Java) a long
>
>>time a go and focused on Python.
>
>Reflection was a useful feature in Java, I suspect that at least part
>of the rationale for the addition to C++ is to match the corresponding
>Java feature. 
>
>
>https://www.oracle.com/technical-resources/articles/java/javareflection.html

IIRC correctly the java version is runtime reflection, the C++ version will
be compile time which is utterly pointless. If the compiler knows whats there
at compile them then so do you and you can write your code accordingly.