考虑合并 int 和 bigint? #8
S6ia4mt2ok0l
started this conversation in
LSR讨论区
Replies: 3 comments 7 replies
-
|
那为什么不能把bight删了,留下int呢?毕竟_(我认为)_大部分人应当更加熟悉int,留下int能够让浅浅学过其他语言的新人更加熟悉,也更加通用 |
Beta Was this translation helpful? Give feedback.
7 replies
-
|
把bigint和int统一合并成int,降低程序员心智负担,也是极好的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
我也觉得将bigint和int合并为int好 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Lamina 目前已有四个 issue 与对 bigint 的处理不当有关:#13, #46, #68, #69。
这四个 issue 除 #13 外均具有明显特征:这些代码在小整数工作正常,但在大整数不工作。
考虑到添加 bigint 的特判并不能永久解决问题(从 issue 之多可以看出 bigint 关注度不高,可以说没把 bigint 当 int 看),用户也并不能感知 bigint 与 int 在底层的区别,因此提议合并 int 与 bigint;具体地,删除 int 类型,将 bigint 作为唯一的整数类型。
Beta Was this translation helpful? Give feedback.
All reactions