3 ms·
I can kind of see what you're getting at but a pure function can both accept and return data without any risk of this data leaking anywhere unintended.
by contravariant 6y ago
I can kind of see what you're getting at but a pure function can both accept and return data without any risk of this data leaking anywhere unintended.
- vel0city 6y agoData leaking isn't the only thing you may be worried about. What about a random number generator designed as a pure function that skews a certain way reducing your cryptographic integrity? What if what looks like a pure function from the outside you're using for some range estimate on some ballistic payload is able to detect its in a live fire scenario and changes its outputs leading to inaccurate detonation? We're talking about malicious external packages/libraries and what not coming in, assuming everything is a pure function in the compiled black box of obfuscated code probably isn't a winning strategy on keeping your system secure. Of course, everyone's threat profile and the risks of failure vary greatly based on the application being deployed.