Herb Sutter's CppCon talk "Extending and Simplifying C++: Thoughts on Pattern Matching using `is` and `as`"

Patrick Schluter Patrick.Schluter at bbox.fr
Tue Nov 2 20:38:05 UTC 2021


On Tuesday, 2 November 2021 at 01:00:27 UTC, Walter Bright wrote:
> On 11/1/2021 3:02 PM, Andrei Alexandrescu wrote:
>>> 1. basic types, structs, and arrays are interchangeable. But 
>>> I couldn't add tuples to the list, because the function call 
>>> ABI for structs is "special". Urgh.
>> 
>> 1a. Hash tables have a number of language magic hacks 
>> (particularly concerning keys that have statically-sized array 
>> types) that are thoroughly inconsistent with the language 
>> rules.
>
> True, but hash tables are not basic types, structs, arrays or 
> tuples!

I hear the sound of bagpipes in the background (see no true 
scotsman).
While it is true that hash tables are not basic, they are treated 
and advertised as such by the language itself.





More information about the Digitalmars-d mailing list