develooper Front page | perl.perl5.porters | Postings from April 2019

[perl #133985] say should be on by default

Thread Next
Steven Penny
April 4, 2019 00:42
[perl #133985] say should be on by default
Message ID:
# New Ticket Created by  Steven Penny 
# Please include the string:  [perl #133985]
# in the subject line of all future correspondence about this issue. 
# <URL: >


has been available at least since version 5.10.0 (2007):

Personally I think its important that all programming languages have some
builtin function that outputs a string followed by newline. Several lanuages
have this already, for example Python:

    print('hello world')


    puts 'hello world'


    print 'hello world'

its even defined by POSIX:

C example:

    #include <stdio.h>
    int main() {
       puts("hello world");

"say" is ideal for this usage, but I think it should be available without having
to issue "use feature say" or similar.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About