您的位置:首页 > 其它

那个说nim作者基础不行的, 吐槽下.

2015-07-12 12:37 225 查看


https://github.com/nim-lang/Nim/wiki/Nim-for-C-programmers
而这是官方原文
Unsigned integers

Nim strongly discourages the use of unsigned integers, as it's considered unnecessary and somewhat unsafe* for most applications. The unsigned types uint, uint8/16/32/64 are available by default, but the arithmetic and binary functions are not defined. If you do need to do arithmetic on unsigned integers, you need to import the unsigned module.

*See: http://critical.eschertech.com/2010/04/07/danger-unsigned-types-used-here/

估计很少接触有无符号溢出操作问题, 不过喷子到哪都存在.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: