Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Default program
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brent 'Dax' Royal-Gordon  
View profile  
 More options Apr 1 2004, 3:48 am
Newsgroups: perl.perl6.language
From: br...@brentdax.com (Brent 'Dax' Royal-Gordon)
Date: Thu, 01 Apr 2004 00:05:12 -0800
Local: Thurs, Apr 1 2004 3:05 am
Subject: Default program
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
default behavior, the @_ list, etc.

I think that Perl 6 should apply that to the entire program.  If the
whole program consists of an empty string, it should substitute in a
sensible default program.

I have done extensive research on the Internet and printed Perl books,
and have concluded that the single most common Perl program is the
following:

     print "Hello world!\n";

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.

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 "hello world" program.

--
Brent "Dax" Royal-Gordon <br...@brentdax.com>
Perl and Parrot hacker

Oceania has always been at war with Eastasia.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.