Re:Copilot regurgitating Quake code, including sweary comments
by dragonwriter on Friday July 02, 2021 @12:04PM
(#27713264)
> My most obnoxious and spicy programming take is that ints an decimals should be built-in and floats should require imports
I don't care about making inexact numbers require imports, but the most natural literal formats should produce exact integers, decimals, and/or rationals.
My most obnoxious and spicy programming take is that ints an decimals should be built-in and floats should require imports. I understand why though: Decimal encoding isn't anywhere near as standardized as other numeric types like integers or floating-point numbers.
[1] https://docs.python.org/3/library/decimal.html [2] https://docs.python.org/3/library/json.html