Re: language war

From: "Jay O'Connor" <joconnor(at)cybermesa(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: language war
Date: 2003-12-02 16:21:33
Message-ID: 3FCCBC0D.9040601@cybermesa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>I have yet to find a language that is as extensible, powerful, and easily
>modular as PHP. My favorite feature is the fact that I can include
>arbitrary files, using a line of code:
>include "$next_file.php";
>Then whichever file shares the name (minus the .php extension) with the
>$next_file variable will be included. This enables me to write
engines that
>allow for event-driven programming in stateless web environments. I have
>not been able to find an elegent solution to this problem either in
Perl or
>PHP.

I'm assuming you meant "either in Perl or Python" since you describe PHP
solution

Dynamically importing modules based on variables like you show above is
certainly possible in Python. I did for a text parsing that imported a
different parser based on a command line switch from the user. If you
want details, I can send them, but the gist is that what you are asking
for is possible in Python

Other than that, see my latest post on comp.object for details of
redefining Python classes on the fly for extensibility.

Browse pgsql-general by date

  From Date Subject
Next Message Jay O'Connor 2003-12-02 16:45:15 Re: language war
Previous Message Franco Bruno Borghesi 2003-12-02 16:12:01 how many quotes?