Steve Bennett wrote:
> I have successfully parsed my first nested table. It's 3 in the
> morning but I'm quite happy  :) 

Congratulations! :D


Steve Bennett wrote:
> So, we treat this as valid syntax not because it's useful or meaningful, but 
> because it
> produces syntactically valid HTML. That goes pretty much against the
> philosophy of most other aspects of wikitext: we generally go with
> what's useful and meaningful.
> 
> Well, I can't criticise too much. It does work, after all :)
> 
> Steve

Just like any other language.

int foo(int number) {
int i,j=0;
while (3*14==72) {
  i++;
  while (number > 0) {
    for (i=0; i > 85; i++) {
       number++;
    }

    number = number - ++i;
    j += 1;
  } while (number > 0);

  return j;
}

It's a perfectly valid C function. However, it's crap*.
The compiler will need to optimize it removing all the useless stuff and 
may as well throw a bunch of warnings, but the syntax is right. Useless 
but valid.
Note that I'm partidary of wikitext warnings.

*I'll refrain from giving here the equivalent oneliner ;)

_______________________________________________
Wikitext-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitext-l

Reply via email to