10.4 已知各类问题(Known Issues and Workarounds)

已知的问题(Known Issues)

  • #870: All impl blocks need to be defined before any of the functions they define can be called. This includes sibling functions in the same impl declaration, i.e., functions in an impl can't call each other yet. #870:所有impl块都需要先定义,然后才能调用它们定义的任何函数。这包括同一impl声明中的同级函数,即impl中的函数还不能互相调用。

缺少的功能 (Missing Features)

  • #1182 Arrays in a storage block are not yet supported. See the Manual Storage Management section for details on how to use store and get from the standard library to manage storage slots directly. Note, however, that StorageMap<K, V> does support arbitrary types for K and V without any limitations. #1182 尚不支持 存储 storage块中的数组。有关如何使用store的详细信息,请参阅手动存储管理部分并从标准库中get直接管理存储槽。但请注意,StorageMap<K, V>确实支持KV的任意类型,没有任何限制。

常规问题 (General)

  • No compiler optimization passes have been implemented yet, therefore bytecode will be more expensive and larger than it would be in production. Note that eventually the optimizer will support zero-cost abstractions, avoiding the need for developers to go down to inline assembly to produce optimal code. 尚未实现编译器优化过程,因此字节码将比生产中的字节码更昂贵且更大。请注意,优化器最终将支持零成本抽象,从而避免开发人员需要进行内联汇编来生成最佳代码。

Last updated