🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #39752

Re: perl6 kilka pytan

#39752
From: Bartosz Jakubski
Date: Mon, 18 Oct 2004 07:32
38 lines
1917 bytes
Teodozjan napisał(a):
> Pierwsze pytanie kiedy będzie można z niego korzystać(mój apt-get
> milczy na ten temat.

Nie dziwota, PErla 6 jeszcze nie ma.

> Na http://perl.org głównie jest o maszynie wirtualnej parrot.

Bo parrot jest i tam się obecnie najwięcej dzieje.

> Podobno jedną z innowacji ma być nie pisanie nazw zmienncyh bez typu
> pomysł bardzo mi się podoba

Zakladam, ze mialo byc 'pisanie nazw zmiennych bez typu';

Nie samochody, tylko rowery itd.
my @array;
my %hash;

$array[1] # Perl 5 
@array[1] # Perl 6 

$hash{'key'} # Perl 5
%hash{'key'} # Perl 6

my $hashref = \%hash # Perl 5
my $hashref = %hash  # Perl 6 (w kontekście skalarnym dostajemy wskaźnik)

$hashref->{'key'} # Perl 5
$hashref.{'key'}  # Perl 6, lub
$hashref{'key'}   # Perl 6 (bo dereferencja jest automatyczna)

Resztę zmian proponuję obejrzeć w http://dev.perl.org/perl6/synopsis/

-- 
-- .- Bartosz Jakubski  ------------------- Sosnowiec -. --
-- |  Free Software is a matter of liberty, not price  | --
-- `---------------(http://www.fsf.org/philosophy)-----' --
Technical Details
Message-ID: <slrncn6s4o.1nj7.migo@bartosz.localdomain>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <85mzylrwjv.fsf@netg.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Bartosz Jakubski <migo@pulapka.pld-linux.org>
Newsgroups: pl.comp.lang.perl
Subject: Re: perl6 kilka pytan
Date: Mon, 18 Oct 2004 07:32:07 +0000 (UTC)
Organization: tp.internet - http://www.tpi.pl/
Lines: 38
Message-ID: <slrncn6s4o.1nj7.migo@bartosz.localdomain>
References: <85mzylrwjv.fsf@netg.pl>
NNTP-Posting-Host: xy214.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1098084727 26576 80.55.232.214 (18 Oct 2004 07:32:07 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 18 Oct 2004 07:32:07 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (FreeBSD)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit