JargonFile/original/html/S/syntactic-salt.html
2014-03-27 18:54:56 +00:00

14 lines
2.4 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>syntactic salt</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../S.html" title="S"/><link rel="previous" href="sync.html" title="sync"/><link rel="next" href="syntactic-sugar.html" title="syntactic sugar"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">syntactic salt</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="sync.html">Prev</a> </td><th width="60%" align="center">S</th><td width="20%" align="right"> <a accesskey="n" href="syntactic-sugar.html">Next</a></td></tr></table><hr/></div><dt><a id="syntactic-salt"/><dt xmlns="" id="syntactic-salt"><b>syntactic salt</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="grammar">n.</span></dt></dt><dd><p> The opposite of <a href="syntactic-sugar.html"><i class="glossterm">syntactic sugar</i></a>, a feature
designed to make it harder to write bad code. Specifically, syntactic salt
is a hoop the programmer must jump through just to prove that he knows
what's going on, rather than to express a program action. Some programmers
consider required type declarations to be syntactic salt. A requirement to
write <b class="command">end if</b>, <b class="command">end
while</b>, <b class="command">end do</b>, etc.: to terminate
the last block controlled by a control construct (as opposed to just
<b class="command">end</b>) would definitely be syntactic salt.
Syntactic salt is like the real thing in that it tends to raise hackers'
blood pressures in an unhealthy way. Compare
<a href="../C/candygrammar.html"><i class="glossterm">candygrammar</i></a>.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sync.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../S.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="syntactic-sugar.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">sync </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> syntactic sugar</td></tr></table></div></body></html>