Re:The number input is the worst input
by vsareto on Thursday September 15, 2022 @01:56PM
(#32855920)
Someone should write a bot to post a reminder to "start with strings unless you're doing math" to reddit/twitter/youtube every week and the world would probably be way better for it. We could even have compiler warnings for type-safe languages when someone declares an int with a name containing 'address/zip/postal/credit/card'
[ Parent
| on HN ]
> We could even have compiler warnings for type-safe languages when someone declares an int with a name containing 'address/zip/postal/credit/card'
That sounds like it would be a better job for a linter than for a compiler.
Re:The number input is the worst input
by gibolt on Thursday September 15, 2022 @04:07PM
(#32857796)
Why not both! Not everyone uses a linter (unfortunately). Compiler would be a nice second catch (for any tooling that has a compiler)