Syntactic Semtex

SyntacticSemtex is a language syntax feature which, while appealing to experts and gurus for all the power that it gives (for producing short, elegant or obfuscated code, usually) is something that (like real Semtex) allows a novice user to blow his leg off. Or allows the expert/guru user to blow the legs off novice users :P

Contrast SemanticSemtex, which refers to language semantics with unclear confusing effects.

Compare this to SyntacticSugar. SyntacticSugar is generally harmless in small doses; (though if a language definition expands; syntactic sugar which is irregular can cause problems); and usually consists of a shortcut for some language feature. It's primary benefit is expressing a common case or operation more concisely. SyntacticSemtex is SyntacticSugar gone over-board or misused.

Just about any syntax that allows code to be obfuscated (or just obscure, even if not intentionally) could be categorized SyntacticSugar.

A couple from CeeLanguage and CeePlusPlus:

More general things that'd be SyntacticSemtex in any language:


CategoryProgrammingLanguage


EditText of this page (last edited February 13, 2010) or FindPage with title or text search