That is actually what Facebook is doing with their spam detection code - their purely functional architecture makes it easier and more reliable for them to hot-swap out parts of their codebase when the need to update it.
https://code.facebook.com/posts/745068642270222/fighting-spa...