Created
April 3, 2014 22:56
-
-
Save anonymous/9964524 to your computer and use it in GitHub Desktop.
AllThatIsWrongWithImperativeCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// result is never used, can this line be removed? | |
val result = calculate(input) | |
update(input) | |
save(input.child) | |
foo() | |
// can the above four lines be re-arranged in a different order? | |
// can foo even be deleted? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That you are required to know what
calculate
,update
,save
andfoo
do internally to be able to reason about this snippet of code is the point here. Such a thing would not be required in e.g.: Haskell.