zlacker

[parent] [thread] 2 comments
1. ratmic+(OP)[view] [source] 2025-12-05 15:31:12
Presumably since this language isn't C they can define it however they want to, for instance in rust std::i32::MIN.wrapping_sub(1) is a perfectly valid number.
replies(1): >>xigoi+c1
2. xigoi+c1[view] [source] 2025-12-05 15:36:13
>>ratmic+(OP)
Nim (the original one, not Nimony) compiles to C, so making basic types work differently from C would involve major performance costs.
replies(1): >>beagle+5e1
◧◩
3. beagle+5e1[view] [source] [discussion] 2025-12-05 21:06:13
>>xigoi+c1
And yet, Nim does overflow checking by default.
[go to top]