Saliya's Blogs

Mostly technical stuff with some interesting moments of life

Showing posts with label miniKanren. Show all posts
Showing posts with label miniKanren. Show all posts

Functional Vs Relational

After sweating my brain over functional programming in Prof. Daniel Friedman's class over the past several weeks, I got the chance to play with relational programming with miniKanren.

It took me some time to adjust my brain to accept the difference. Finally, I told myself

"Going to the grocer and paying for what you got is functional programming, but going to the grocer and handing over 10$ asking to give whatever that fits is logic programming"

Just a thought :)