最新的设计文档里面对这一块做了一个解释。
Why not use the syntax F like C++ and J***a? When parsing code within a function, such as v := F, at the point of seeing the < it's ambiguous whether we are seeing a type instantiation or an expression using the < operator. This is very difficult to resolve without type information. For example, consider a statement like a, b = w < x, y > (z) Withou…。
上一篇:C++11,C++20,C++23陆续增加了许多新特性,有没有一个系统性的教程讲解这些新增的内容?
下一篇:你卡过最厉害的bug是什么?