"Lars Aronsson" <lars(a)aronsson.se> wrote in
message news:Pine.LNX.4.61.0512141434370.22021@sara.aronsson.se
Phil Boswell wrote:
Now that I have taken another look at it, I think
that it is
actually doing something extremely clever. The wikicode is:
{{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}}
For quite some time (1973-1993 or so), the Unix/Linux commands
test(1), true(1) and false(1) were stand-alone programs that
required the fork(2) and exec(2) of a new process, after which the
shell would check their exit status. In modern Unix shells (such
as bash(1)) these are built-in commands, which makes their
frequent use in scripts a lot more efficient.
Why not give up this {{{if}}} template craziness and implement a
basic set of programming logic operators (if, for, foreach, while,
switch, ...) in the wiki syntax? Programming logic embedded in
textual content is well-known from languages like PHP.
Many thanks to Carl (aka AzaToth)!
--
Adrian
[[en:User:Adrian Buehlmann]]