fastjs-team / core

Fastjs is a useful, lightweight JavaScript library for any types of project.
https://fastjs.dev
MIT License
351 stars 39 forks source link

Bug: 命名法不正确 #50

Closed FurryR closed 1 year ago

FurryR commented 1 year ago

类应当以大写字母而不是小写字母开头。 在 dev 版中,可以将 fastJsArray 等不规范命名换为 FastJSArray 这样规范的命名,并且将 fastJsArray 作为 FastJSArray 的 deprecated 别名。 作为一个项目,良好的码风还是必要的。

此外,虽然不属于这个 issue,但 FastJS 部分位置的类型注释极为薄弱,请考虑缩紧类型。

xiaodong2008 commented 1 year ago

以后会把fastjsArray, fastjsDom等更名为FastjsArray, FastjsDom,但目前的话开发者在使用层面还是 new FastjsArray() new FastjsDom()

xiaodong2008 commented 1 year ago

This work is done and it will update at release v1.2.0