Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] Re: Perl for scripting (Re: Plans for 1.12)
Home

[Freeciv-Dev] Re: Perl for scripting (Re: Plans for 1.12)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: Freeciv Dev <freeciv-dev@xxxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Perl for scripting (Re: Plans for 1.12)
From: Steve Hodge <shodge@xxxxxxxxxxxxxx>
Date: Wed, 28 Jun 2000 15:39:14 +1000

Lalo Martins wrote:
> On Wed, Jun 28, 2000 at 05:42:32AM +0200, Tomasz Wegrzanowski wrote:
> > See ?
> 
> No, I don't :-)
> 
> Python doesn't have arrays; it has tuples and lists. Tuples are
> an advanced concept, beginners will live happily with lists
> most of the time. And an one-element list is written [1].
> 
> --- start
> twoelementlist = [1,2]
> oneelementlist = [1]
> print twoelementlist[0]
> print oneelementlist[0]
> --- end
> 
> For people with any non-lisp'ish programming experience, [1]
> will probably be more DOHish than (1), won't it?

Depends - if they've done C, then yes. If they're non-programmers they
may well wonder what the difference is or not realise there is a
difference.

> > TIMTOWTDI = There Is More Than One Way To Do It
> 
> That's the biggest point of friction between Perl lovers and
> Perl haters, right? :-)
> 
> TIMTOWTDI is good for the writer and problematic to the reader.

Which is probably a plus in this case. Probably most of the people who
would use FreeCiv scripting (outside the developers) would use it to
write stuff they want to do and never look at anyone else's code (except
for examples which can be written properly).

I like Perl for quick things - it lets me write short programs quicker
than anything else I've tried (I have not tried Python or Scheme). I
wouldn't use it for a large project, but it can be done if you're
careful. But then with a large project you really need to be careful
regardless of the language.

Regards,
Steve Hodge


Regards,
Steve Hodge



[Prev in Thread] Current Thread [Next in Thread]