I think the key difference here is that code actually has to compile, so no matter how clever your lispy magic gets it's still grounded by that reality. Foucault (and Barthes, Saussure et al) are unencumbered by the constraint of their prose actually having to be parseable by anyone. Their prose is better thought of as an artistic performance than a functional machine.