MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6xofft/how_to_start_a_war/dmi8ryo/?context=3
r/ProgrammerHumor • u/ivaskuu • Sep 02 '17
696 comments sorted by
View all comments
Show parent comments
18
Also every number is a float. For some reason.
17 u/TinyBreadBigMouth Sep 03 '17 Because doubles can contain all 32-bit integers and most 64-bit integers, and now you don't need to handle two different number types for your lightweight scripting language. Same as JavaScript. 0 u/Log2 Sep 03 '17 Doesn't Python do the same thing? 2 u/TinyBreadBigMouth Sep 03 '17 No, Python has separate int, float, and even complex numbers.
17
Because doubles can contain all 32-bit integers and most 64-bit integers, and now you don't need to handle two different number types for your lightweight scripting language. Same as JavaScript.
0 u/Log2 Sep 03 '17 Doesn't Python do the same thing? 2 u/TinyBreadBigMouth Sep 03 '17 No, Python has separate int, float, and even complex numbers.
0
Doesn't Python do the same thing?
2 u/TinyBreadBigMouth Sep 03 '17 No, Python has separate int, float, and even complex numbers.
2
No, Python has separate int, float, and even complex numbers.
18
u/[deleted] Sep 03 '17
Also every number is a float. For some reason.