Simon Wistow said: > I hate our internal templating language which we affectionateluy refer > to as "Satan's own templating language" or "Gaaaaaaaaah, you > suckle on the wang of a syphillitic mule you pus filled buboe of a > abomination-stroke-language ... a curse on your creators may they rot > in hell with their flesh being flayed from them with cocktails > umbrellas as a thousand incontinent were-elephants micturate on them"
Any chance you could upload it to CPAN? > But it does have one slightly nice (albeit probably unintentional) > feature to do with 'if' statements. Since the language can't be indented > (don't ask - lest you be condemned to the same fate involving pachyderms > described above) you can do this > > > <!-- if $somevar==foo --> > ... > <!-- endif $somevar==foo --> > > > And thus if you have long, nested 'if' statements they become easier to > edit. Not that it actually cares if they match up or anything. > > So I was wondering whether it would be possible/a good thing to have > something like ... > > > if ($somevar eq 'foo') { > ... > } ($somevar eq 'foo') > > And have them check to see if they're the same thing. I'm not sure what advantages this has over proper indentation and a decent editor. And besides, duplicate code should be mercilessly factored. I've never liked having the condition as a comment after the endif, either. If the block is so big that you're not sure what the condition was when you get to the end, factor out some or all of the block. As long as you can use a decent language and tools, of course. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net