News for hackers. Stuff that matters.
Re:The unreasonable effectiveness of declarative programming by Aqueous on Tuesday May 19, 2020 @06:50AM (#23233443)
there’s a lot of different perspectives on what declarative actually means but in my view it means creating a description of what you want rather than how you want it done. in that sense I think the article qualifies. what you have above is also declarative in the sense that you are describing rules, not how to solve for them. i believe this is kind of declarative is ‘constraint programming’ and also qualifies.
Re:The unreasonable effectiveness of declarative programming by naringas on Tuesday May 19, 2020 @10:59AM (#23235565)
I agree, my go-to example of declarative programming is SQL

you say what you want, and the DB figures out how best to get it.