bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ preferences (was: RFC: lalr1.cc: support move semantics)


From: Akim Demaille
Subject: Re: C++ preferences (was: RFC: lalr1.cc: support move semantics)
Date: Sat, 15 Sep 2018 18:24:22 +0200

> Le 15 sept. 2018 à 15:27, Frank Heckenbach <address@hidden> a écrit :
> 
> Akim Demaille wrote:
> 
>>> I haven't done coroutines, but threads, and of course, everything
>>> that's exposed there, I make as const as possible. But that doesn't
>>> usually include local variables.
>> 
>> Local variables can be captured by lambdas and passed to coroutines.
> 
> That's why I cautioned my statement with "usually". ;)

Yes!  You did!  Sorry if I gave the wrong impression.  I just meant
that it’s certainly more frequent with coroutines than with threads.


>> I agree short lived entities should have short names.  That's
>> actually one benefit (the only one?) to have *.h and *.c files:
>> *.h files can expose intelligent meaningful names, while *.c can
>> use short names.
> 
> I think we could still do that in a single source file with a little
> discipline. I’d love to have real modules in C++ (one day ...).

I’m eager to have modules, especially for the speedup.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]