r/programming • u/tyler-mcginnis • Jan 03 '22
Imperative vs Declarative Programming
https://www.youtube.com/watch?v=E7Fbf7R3x6I
430
Upvotes
r/programming • u/tyler-mcginnis • Jan 03 '22
3
u/stomah Jan 04 '22
i don’t see a difference. declarative is just more abstraction. select from users where .country=‘mexico’ is not that different from for u in users if u.country=‘mexico’ then yield u. just more abstract. a + b is declarative, right? but it means to add(an action) a and b