Theiling Online    Sitemap    Conlang Mailing List HQ   

Re: OT: Auxlangs (was Re: "Esperanto V.2")

From:taliesin the storyteller <taliesin-conlang@...>
Date:Monday, March 27, 2006, 20:44
* Benct Philip Jonsson said on 2006-03-27 21:58:55 +0200
> taliesin the storyteller skrev: > > > > Whereas the corresponding program in Perl - the poster child for > > > illegibility - is a single line that says 'print "Hello, > > > world!\n";'. The only things you have to explain are the \n and > > > maybe the semicolon. > > > > Can't help myself - in Python that would be 'print "Hello, world!"', > > not even needing to explain a semicolon or a line shift :) > > Does this mean that each statement has to be on a single > physical line in Python?
Nope, you can combine statements with a semicolon. It is redundant at the end of a line. Your... huge if... I would make a state-machine for: def State1(*args, **kwargs): # bla whatever ... def State2(*args, **kwargs): # bla different whatever ... . . . states = {'state1': State1, 'state2': State2, ... } runstate = sys.stdin.readline() states[runstate]('foo', 1, previous_state='state2')
> >Rexx interestingly uses "say" instead of "print", even more concise. > > It *is* letters that come out, right? Not sounds?
Letters, yes. t.