10.4 已知各类问题(Known Issues and Workarounds)
已知的问题(Known Issues)
缺少的功能 (Missing Features)
#1182 Arrays in a
storage
block are not yet supported. See the Manual Storage Management section for details on how to usestore
andget
from the standard library to manage storage slots directly. Note, however, thatStorageMap<K, V>
does support arbitrary types forK
andV
without any limitations. #1182 尚不支持存储 storage
块中的数组。有关如何使用store
的详细信息,请参阅手动存储管理部分并从标准库中get
直接管理存储槽。但请注意,StorageMap<K, V>
确实支持K
和V
的任意类型,没有任何限制。
常规问题 (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