cginternals / cginternals/cppexpose

Variant array naming confusion

未关闭
#48 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
decision required enhancement
主要语言
C
星标
28
派生
12
PR 合并指标
30 天内没有已合并 PR

描述

`Variant::isArray()` and `Variant::asArray()` mean different things by 'Array' (array by means of the typed-library vs. `VariantArray` aka `std::vector`). `isVariantArray` is the actual type query function corresponding to `asArray`, so `asArray` should probably be renamed `asVariantArray`. Same goes for `asMap` & `isVariantMap`.

贡献指南

这个仓库没有索引到贡献指南

调研方向

未指定文件或测试。首先定位 Variant::isArray()、asArray()、isVariantArray、asMap() 和 isVariantMap,然后检查它们的声明及在仓库中的使用情况。完成的标准是命名能够始终区分类型化库数组与 VariantArray/VariantMap 值,且不留下不匹配的调用点。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
tooling
Issue 类型
重构
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。