Imperative | Declarative | |
---|---|---|
Description | Instructions for performing a task | The desired end state of a task |
Example | "Please help me to purchase eggs, vegetables, and chicken, and place them in the fridge " | "Please ensure that there are eggs, vegetables, and chicken meat in the fridge." |
Outcome | Errors arising from conflict can occur. Using the example above, there can be duplicated groceries if already purchased before. | System achieves desired end state regardless of the previous states or instructions. |
Created
March 13, 2022 12:09
-
-
Save Weiyuan-Lane/35123ad2ce3bcc249e315c080e3f7a96 to your computer and use it in GitHub Desktop.
Imperative vs declarative
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment