Beautiful functional programming

If you program with cartesian closed categories in mind, then it’s functional.
If you rely on separation logic, then it is imperative.
Easy! :grinning_face_with_smiling_eyes:

2 Likes

Can you say something about separation logic and how it connects to the intuitive understanding of “imperative”?

What does

program with cartesian closed categories in mind

(emphasis added by me) even mean? :grinning: Also why does for FP is enough to have CCC in mind but for imperative programming you have to rely on separation logic?

That seems of fairly marginal utility compared to -XRecordWildCards.

Because Hask isn’t a true category and you’d get ridiculed for talking about it like that :sweat_smile:

There’s a thread about that

/jk

My questions were more of provocative nature you can program in any paradigm with separation logic or CCC in mind and that doesn’t make it any different :stuck_out_tongue_winking_eye: