释义 |
syntactic salt syntactic saltThe opposite of syntactic sugar, a feature designed to makeit harder to write bad code. Specifically, syntactic salt isa hoop the programmer must jump through just to prove that heknows what's going on, rather than to express a programaction. Some programmers consider required type declarationsto be syntactic salt. A requirement to write "end if", "endwhile", "end do", etc. to terminate the last block controlledby a control construct (as opposed to just "end") woulddefinitely be syntactic salt. Syntactic salt is like the realthing in that it tends to raise hackers' blood pressures in anunhealthy way. Compare candygrammar.syntactic saltCertain coding rules in a programming language that enforce a discipline such as requiring that all variables be typed (string, integer, etc.). Syntactic salt irritates programmers who prefer less rigidity. Contrast with syntactic sugar. |