Re:Free-threaded CPython is ready to experiment with
by mixmastamyk on Saturday July 13, 2024 @03:23PM
(#40956216)
Protection from untrusted input is something that has to be considered in any language.
Not yet been a real world concern in my career, outside webforms, which are handled by framework.
Re:Free-threaded CPython is ready to experiment with
by GTP on Saturday July 13, 2024 @03:52PM
(#40956415)
> Protection from untrusted input is something that has to be considered in any language
Sure, but some languages make it easier than others. And that was just one example, another example could be having a branch where the input to your function depends on some condition. You could have one of the two branches passing the wrong types, but you will only notice when that branch gets executed.
The problem is that you can't know if the function is going to do what you want it to do without also looking at the context in which it is used. And what you pass as input could be dependent on external factors that you don't control. So I prefer the languages that let me know what happens in 100% of the cases.