Re: Default program

2004-04-01 Thread Leopold Toetsch
Leopold Toetsch <[EMAIL PROTECTED]> wrote: > spawnw $I0, "$EDITOR hello.imc" > .end That's of course suboptimal. Here is a better version: .local pmc env env = new Env .local string editor editor = env["EDITOR"] # TODO: provide sensible default if not found, i.e. vi

Re: Default program

2004-04-01 Thread Leopold Toetsch
Richard Nuttall <[EMAIL PROTECTED]> wrote: > On the DWIM principle, shouldn't Perl then just autoload the DWIM::AI > module and provide as output the script that they are intending to write ? That needs of course some support in the inyards of Perl6, i.e. in Parrot. $ parrot ,--[ editor-session

Re: Default program

2004-04-01 Thread Richard Nuttall
Therefore, I recommend that, when given an empty program or -e string, Perl 6 should print "Hello world!", emit a newline, and exit. I believe that this feature would be fairly trivial to implement. I cannot agree with this. In fact, if someone types "perl" on the command line without any

RE: Default program

2004-04-01 Thread Austin Hastings
> -Original Message- > From: [EMAIL PROTECTED] > > [EMAIL PROTECTED] (Austin Hastings) writes: > > Since the emacs codebase is already ported to many platforms, it should > > be trivial to add this to the core perl distribution. Perhaps Simon > > would agree to lead this effort? > > I w

Re: Default program

2004-04-01 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > Since the emacs codebase is already ported to many platforms, it should > be trivial to add this to the core perl distribution. Perhaps Simon > would agree to lead this effort? I would laugh, but http://search.cpan.org/~jtobey/Emacs-EPL-0.7/ -- On ou

Re: Default program

2004-04-01 Thread Austin Hastings
--- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: > I had a thought tonight. > > Perl has a general principle that, in the absence of any indication > otherwise, it should use a sensible default. This default generally > matches the most common use of the feature by new programmers. This >

Re: Default program

2004-04-01 Thread Elizabeth Mattijsen
At 00:05 -0800 4/1/04, Brent 'Dax' Royal-Gordon wrote: On the other hand, the current behavior may be somewhat entrenched, and might break our promise to assume that code is Perl 5 until we see a different indication. As an alternative, perhaps the -H command-line switch could be used to use a "he

Default program

2004-04-01 Thread Brent 'Dax' Royal-Gordon
I had a thought tonight. Perl has a general principle that, in the absence of any indication otherwise, it should use a sensible default. This default generally matches the most common use of the feature by new programmers. This principle is reflected in Perl 6's design in many ways--$_, sort's