Cppfront : A new syntax for C++

German Diago german.diago at cppmaster.net
Sun Sep 25 06:49:41 UTC 2022


On Saturday, 17 September 2022 at 15:56:54 UTC, IGotD- wrote:
> On Saturday, 17 September 2022 at 11:08:37 UTC, Tejas wrote:
>> https://github.com/hsutter/cppfront
>>
>> People working towards syntax improvements as well to C++ now, 
>> which they believe will pave the way for semantic improvements 
>> that break backwards compatibility with C++
>
> When C++ compile times aren't long enough, let's make them 
> longer.

This is the wrong judgement to do (about compile times). Compile 
times with modules are *shorter*. Cpp2 pushes for modules, not 
for include, but pure modules.

Besides that, there are things such as tuples (multiple return 
values) done without templates, which avoids instantiation.

Also, take into account that cppfront being a preprocessor is an 
implementation detail to easily be able to mix and match cpp/cpp2 
and that some day it could become a full-fledged compiler. Cpp2 
is thought for transition to pure cpp2 but 100% compatible. This 
means that preprocessing by lowering is a technique, but not the 
only technique.

Greetings.



More information about the Digitalmars-d mailing list