Skip to content

Why Not Derive TableArray from Array? #134

Description

@Gaven-F

Great tool, makes my bugs run (just kidding).

I have a question: why choose to separate TomlTableArray and TomlArray? I think TableArray could be derived from Array, since most of their representations are pretty similar. Plus, with this approach, it would be easier and faster to make judgments in some ambiguous scenarios, and also provide better control in edge cases. Not every scenario needs such fine-grained distinction, right?

-- chinese/中文 --

很好的工具,使我的Bug运行(开玩笑的)。
我有一个问题,为啥选择把TomlTableArray和TomlArray拆分?我觉得TableArray可以是Array的派生,毕竟大部分的表现形式也差不多,同时,这样处理之后,可以在一些使用模糊的场景下方便且快速的进行判断,在细微场景也能比较好的控制。并不是所有场景都需要分那么细,对吧?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions