[WikiEN-l] MediaWiki is getting a new programming language

wjhonson at aol.com wjhonson at aol.com
Mon Jul 6 23:25:00 UTC 2009


 Yes I mean PRINT is far more obvious what it's doing.? Most programmers can understand what ADD, COUNT or FORMAT is supposed to do, in general.? Sure you could just use "/" or "~" or "^" but it's not obvious what they do without a manual.




Me: "Compromising between efficiently terse syntax and efficiently expressive
natural language gets... "  .. a functional language?   Haskell?



 


 


 

-----Original Message-----
From: stevertigo <stvrtg at gmail.com>
To: English Wikipedia <wikien-l at lists.wikimedia.org>
Sent: Mon, Jul 6, 2009 3:56 pm
Subject: Re: [WikiEN-l] MediaWiki is getting a new programming language










Forgive my pseudocode (based on Neil's example):

function A: search ":" = [0],  scope (before [0]),  count [a-z] = [1],
format [1] [TWO-DIGIT ZERO-PADDED  HEXADECIMAL NUMBER]  /* :-P */,
format [1] [lowercase], move [1] [0].

Breakdown:
function A:
 search ":" = [0],                  // search for ":" and set it to
the 0 parameter
 scope (before [0]),            // set the scope for the next
operation as before 0 (":")
 count [a-z] = [1],               // count anything a-z within the
scope and set it to another parameter 1
 format [1] [TWO-DIGIT ZERO-PADDED HEXADECIMAL NUMBER],
 format [1] [lowercase],  // shouldn't affect numbers, and hex = A-F
anyway, so "A-F distinction = unnecessary
 move [1] [0].                 // put the results of 1 in the 0
position, period (.) ambiguously =  stop symbol

I'm not sure this gets all of it. IANAP

Me: "Compromising between efficiently terse syntax and efficiently expressive
natural language gets... "  .. a functional language?   Haskell?

-Steven

_______________________________________________
WikiEN-l mailing list
WikiEN-l at lists.wikimedia.org
To unsubscribe from this mailing list, visit:
https://lists.wikimedia.org/mailman/listinfo/wikien-l



 



More information about the WikiEN-l mailing list