Re:Is Haskell a good choice for software security?
by Akronymus on Friday December 17, 2021 @11:34AM
(#29594489)
You could split it up into 2 functions I guess. A pure one that creates the log entry, then an IO one that actually saves it.
[ Parent
| on HN ]
Re:Is Haskell a good choice for software security?
by Quekid5 on Friday December 17, 2021 @03:50PM
(#29598177)
Yes, but if the IO one does <shenanigans> then you're as well off. Which is... not very.
EDIT: Just to say: I don't mean to be flippant.
Re:Is Haskell a good choice for software security?
by Akronymus on Friday December 17, 2021 @06:35PM
(#29599630)
Oh its fine.
And i meanr it more in that one part is literally just passing the data along, while the other part generates the data with being fed whatever is needed for it to. so, if yoj want to just log a literal string yoj wouldnt provide any additional functionality to the generator.
if you want it to expand strings, then you provide a function for that. and so on