|
|
|
|
|
by camus
4824 days ago
|
|
well one declares variables: - given a pan
- given 3 eggs
- given a little of olive oil
then one executes orders : - add the oil in the pan
- break the eggs and add them in the pan
- cook the eggs fo 5 mins
- serve the food hot
so i guess one is never really doing either pure declarative of imperative cooking/programming ?I like the cookbook metaphore for programming. |
|
So, don't get me wrong. I'm all for declarative actions. I just think the "purely declarative" approach that many languages try and impose is a useful aberration when you consider how the vast majority of "programming" is done.