Closed
Description
The problem with examples is that we want them to be easily grasped (so they don't do the most elaborate error checking) and that they highlight the need to handle restarts. Unfortunately, most (all?) examples are "wrong" in the sense that they
- don't check all errors
- don't check whether both accounts involved in a transfer exist (so essentially you can lose money or create it from nowhere)
- do two (or rather, six) individual queries even though they could do one
I think we should strive to make the examples "optimal" in all regards since often that's where folks are going to copy-paste from.