By darcy on Sep 26, 2006
When I misspelled "syntactic sugar" the other day, the helpful spell checker suggested "synaptic sugar" as a replacement, a replacement that fits surprisingly well! The goal of the best syntactic sugar, like the enhanced for loop in JDK 5, is to be sweeter for your brain by removing the need to see repetitive details, like the standard induction variable patterns.
Syntactic sugar makes tradeoffs between two general effects:
- A more explicit program is easier to understand.
- A shorter program is easier to understand.