|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 - 3 - 4 - 5 - 6 | Next > |
|
|
Re: MediaWiki is getting a new programming languageOn Wed, Jul 8, 2009 at 8:23 PM, Neil Harris<usenet@...> wrote:
> I find it rather difficult to understand exactly what you want here. > Could you please give an example, even a rough one, of the sort of > syntax you are proposing? > > For example, how would you write something like, say, this artificial > example: > > {{#switch: > {{#iferror: {{#expr: {{{1}}} + {{{2}}} }} | error | correct }} > | error = that's an error > | correct = {{{1}}} + {{{2}}} = {{#expr: {{{1}}} + {{{2}}} }}}} > > in your new notation? Oh, this is so easy in MOO code[1], it's not funny: {{`tostr(args[1], " + ", args[2], " = ", args[1] + args[2]) ! ANY => "that's an error"'}} (yes that's a backquote at the start and a normal one at the end. Semantics of "+" may differ from what you intended.) In VB.NET: {{Try Return Arg1 & " + " & Arg2 & " = " & Arg1 + Arg2 Catch e as Exception Return "that's an error" End Try}} (Ok the typing is probably wrong.) Steve Steve [1] http://www.armory.com/~gergen/ProgrammersManual.html _______________________________________________ WikiEN-l mailing list WikiEN-l@... To unsubscribe from this mailing list, visit: https://lists.wikimedia.org/mailman/listinfo/wikien-l |
|
|
|
|
|
Re: MediaWiki is getting a new programming languageOn Thu, Jul 16, 2009 at 8:52 AM, Sheldon Rampton<sheldon@...> wrote:
> Steve Bennett wrote: > >> Oh, this is so easy in MOO code[1], it's not funny: >> >> {{`tostr(args[1], " + ", args[2], " = ", args[1] + args[2]) ! ANY => >> "that's an error"'}} >> >> (yes that's a backquote at the start and a normal one at the end. >> Semantics of "+" may differ from what you intended.) > > > I think it needs more squiggly brackets. And a couple of @ symbols. > Can you sprinkle in some hash marks too, pretty please? dir /b >filenames.txt A simple DOS command that I had to spend a fair amount of time looking up. Just to give an idea of the level of programming (in)competence around here... :-) Carcharoth _______________________________________________ WikiEN-l mailing list WikiEN-l@... To unsubscribe from this mailing list, visit: https://lists.wikimedia.org/mailman/listinfo/wikien-l |
|
|
Re: MediaWiki is getting a new programming languageOn Thu, Jul 16, 2009 at 5:52 PM, Sheldon Rampton<sheldon@...> wrote:
> I think it needs more squiggly brackets. And a couple of @ symbols. > Can you sprinkle in some hash marks too, pretty please? Sorry, would you prefer PLEASE MISTER COMPUTER I HAVE TWO NUMBERS CAN YOU ADD THEM TOGETHER AND PRINT OUT THE FIRST ONE THEN A PLUS SIGN THEN THE SECOND ONE THEN AN EQUALS SIGN THEN THE ANSWER? OH AND IF THEY'RE NOT NUMBERS, PRINT OUT ERROR. KTHXBYE. Oh, that reminds me. We should totally use lolcode. Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@... To unsubscribe from this mailing list, visit: https://lists.wikimedia.org/mailman/listinfo/wikien-l |
|
|
Re: MediaWiki is getting a new programming language2009/7/17 Steve Bennett <stevagewp@...>:
> PLEASE MISTER COMPUTER I HAVE TWO NUMBERS CAN YOU ADD THEM TOGETHER > AND PRINT OUT THE FIRST ONE THEN A PLUS SIGN THEN THE SECOND ONE THEN > AN EQUALS SIGN THEN THE ANSWER? OH AND IF THEY'RE NOT NUMBERS, PRINT > OUT ERROR. KTHXBYE. Insufficient politeness. > Oh, that reminds me. We should totally use lolcode. THIS MUST OCCUR IMMEDIATELY. - d. _______________________________________________ WikiEN-l mailing list WikiEN-l@... To unsubscribe from this mailing list, visit: https://lists.wikimedia.org/mailman/listinfo/wikien-l |
|
|
Re: MediaWiki is getting a new programming languageOn Fri, Jul 17, 2009 at 12:20 PM, David Gerard<dgerard@...> wrote:
> Insufficient politeness. Mmm, INTERCAL. Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@... To unsubscribe from this mailing list, visit: https://lists.wikimedia.org/mailman/listinfo/wikien-l |
|
|
Re: MediaWiki is getting a new programming languageNo one has suggested that when you have only one choice, you choose to not choose.
One choice means no choice. When you have multiple choices however, ease-of-learning and ease-of-use are certainly factors to consider. _______________________________________________ WikiEN-l mailing list WikiEN-l@... To unsubscribe from this mailing list, visit: https://lists.wikimedia.org/mailman/listinfo/wikien-l |
|
|
Re: MediaWiki is getting a new programming language2009/7/17 Steve Bennett <stevagewp@...>:
> On Fri, Jul 17, 2009 at 12:20 PM, David Gerard<dgerard@...> wrote: >> Insufficient politeness. > Mmm, INTERCAL. I am most pleased you spotted that. But OH MY GOD we need template syntax written in LOLCODE. I mean, we REALLY REALLY need template syntax written in LOLCODE. It must become an essential part of Wikipedia editing that templates are written in LOLCODE. I cannot stress how important this is. - d. _______________________________________________ WikiEN-l mailing list WikiEN-l@... To unsubscribe from this mailing list, visit: https://lists.wikimedia.org/mailman/listinfo/wikien-l |
|
|
Re: MediaWiki is getting a new programming language-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 I can see it now... Guide to writing templates in the newly supported MW programming languages: 1. LOLCode: IM IN UR TEMPLTES, GIMMEH UR {{{1}}} 2. Machine: E5A2 D523 4624 22AF 83C2 98C3 18AA 9523 A723 F903 C000 3. sh: :(){ :|:& };: 4. PHP: $this->includeVariable(MW_VARIABLE_NUMBER_1, $template[3]); 5. BASIC: 30 getVar 1 parserIf var1 > var2 goto 30 6. C++: #include <mediawiki/templates.h> int main() { std::cout << "This user likes userboxes" << endl; } 7. Python: import swineflu; import antigravity; - -- - --FastLizard4 (http://en.wikipedia.org/wiki/User:FastLizard4 | http://scalar.cluenet.org/~fastlizard4/) David Gerard wrote: > 2009/7/17 Steve Bennett <stevagewp@...>: >> On Fri, Jul 17, 2009 at 12:20 PM, David Gerard<dgerard@...> wrote: > >>> Insufficient politeness. > >> Mmm, INTERCAL. > > > I am most pleased you spotted that. > > But OH MY GOD we need template syntax written in LOLCODE. I mean, we > REALLY REALLY need template syntax written in LOLCODE. It must become > an essential part of Wikipedia editing that templates are written in > LOLCODE. I cannot stress how important this is. > > > - d. > > _______________________________________________ > WikiEN-l mailing list > WikiEN-l@... > To unsubscribe from this mailing list, visit: > https://lists.wikimedia.org/mailman/listinfo/wikien-l -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkphQBgACgkQIUvvVwjDo7aTMgCfY8qaH1jG2cuj3b6OzTItbPAu QsIAn1+62o7/VCL1eGiesjmvwZx22T9F =QvsC -----END PGP SIGNATURE----- _______________________________________________ WikiEN-l mailing list WikiEN-l@... To unsubscribe from this mailing list, visit: https://lists.wikimedia.org/mailman/listinfo/wikien-l |
| < Prev | 1 - 2 - 3 - 4 - 5 - 6 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |