[Freeciv-Dev] Re: Plans for 1.12
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Artur Biesiadowski wrote:
> Tomasz Wegrzanowski wrote:
> > And ugly/beauty issue is very personal.
>
> I agree, but most perl programs would win Obsfucate-C contest without
> modification :)
> Seriously, I'm mainly talking about proliferation of $ @ % etc in perl
> code.
That's really a very naive opinion (I don't mean any offense by that, so
please don't take any). The $/@/% make code more readable because it
immediately tells you what type of variable you're dealing with. Most
other languages don't. For example, with C if you see a variable named
foo it could be anything - integer, pointer to a char, pointer to a
pointer, whatever. In Perl @foo is one thing - an array. There are traps
- in particular I disagree with each type (scalar, array, hash, etc)
having seperate namespaces, but most languages have some. The things I
find obfucate Perl are the regular expression handling, the special
variables (with the stupid symbols for names like $[ - although these
are optional), and being able to call functions without brackets (which
I guess derives from Perl's shell script roots). All of these things
problems are eliminated by good coding style, and of course any language
can be made to look bad by poor coding style.
> Also fact that function can have different side effect depending
> on fact what type of return I want from it at call site is very 'ugly'
> for me.
Agree with that. But that is one of the most requested features in OO
languages (at least by people who don't understand) - overloading by
return type.
Regards,
Steve Hodge
- [Freeciv-Dev] Re: Plans for 1.12, (continued)
- [Freeciv-Dev] Re: Plans for 1.12, Raimar Falke, 2000/06/19
- [Freeciv-Dev] Re: Plans for 1.12, Jed Davis, 2000/06/19
- [Freeciv-Dev] Re: Plans for 1.12, Tobias Bengtsson, 2000/06/26
- [Freeciv-Dev] Re: Plans for 1.12, Tomasz Wegrzanowski, 2000/06/26
- [Freeciv-Dev] Re: Plans for 1.12, Artur Biesiadowski, 2000/06/26
- [Freeciv-Dev] Re: Plans for 1.12, Tomasz Wegrzanowski, 2000/06/26
- [Freeciv-Dev] Re: Plans for 1.12,
Steve Hodge <=
- [Freeciv-Dev] Perl for Freeciv scripting? (was: Plans for 1.12), Reinier Post, 2000/06/27
- [Freeciv-Dev] Re: Plans for 1.12, Daniel Burrows, 2000/06/26
- [Freeciv-Dev] Re: Perl for scripting (Re: Plans for 1.12), Lalo Martins, 2000/06/27
- [Freeciv-Dev] Re: Perl for scripting (Re: Plans for 1.12), Tomasz Wegrzanowski, 2000/06/27
- [Freeciv-Dev] Re: Perl for scripting (Re: Plans for 1.12), Lalo Martins, 2000/06/27
- [Freeciv-Dev] Re: Perl for scripting (Re: Plans for 1.12), Tomasz Wegrzanowski, 2000/06/27
- [Freeciv-Dev] Re: Perl for scripting, Cameron Morland, 2000/06/27
- [Freeciv-Dev] Re: Perl for scripting, Tomasz Wegrzanowski, 2000/06/28
- [Freeciv-Dev] Re: %!PS, Cameron Morland, 2000/06/28
- [Freeciv-Dev] Re: Perl for scripting, Lalo Martins, 2000/06/28
|
|