From complefor at rambler.ru Thu Nov 26 07:01:42 2015 From: complefor at rambler.ru (=?koi8-r?B?88XSx8XKIPLPzcHOz9c=?=) Date: Thu, 26 Nov 2015 18:01:42 +0300 Subject: [SPb-pm] test Message-ID: <1448550102.894982.22800.55691@mail.rambler.ru> one two -------------- next part -------------- An HTML attachment was scrubbed... URL: From chesnokov.ilya at gmail.com Thu Nov 26 07:08:26 2015 From: chesnokov.ilya at gmail.com (Ilya Chesnokov) Date: Thu, 26 Nov 2015 18:08:26 +0300 Subject: [SPb-pm] test In-Reply-To: <1448550102.894982.22800.55691@mail.rambler.ru> References: <1448550102.894982.22800.55691@mail.rambler.ru> Message-ID: three 2015-11-26 18:01 GMT+03:00 ?????? ??????? : > one two > > > _______________________________________________ > Spb-pm mailing list > Spb-pm at pm.org > http://mail.pm.org/mailman/listinfo/spb-pm > -- Best regards, Ilya Chesnokov From chesnokov.ilya at gmail.com Thu Nov 26 07:10:39 2015 From: chesnokov.ilya at gmail.com (Ilya Chesnokov) Date: Thu, 26 Nov 2015 18:10:39 +0300 Subject: [SPb-pm] test In-Reply-To: References: <1448550102.894982.22800.55691@mail.rambler.ru> Message-ID: 2015-11-26 18:08 GMT+03:00 Ilya Chesnokov : > three ?? ????? ?? ??????? (?????? ??????? ? moscow.pm). > 2015-11-26 18:01 GMT+03:00 ?????? ??????? : >> one two >> >> >> _______________________________________________ >> Spb-pm mailing list >> Spb-pm at pm.org >> http://mail.pm.org/mailman/listinfo/spb-pm >> > > > > -- > Best regards, > Ilya Chesnokov -- Best regards, Ilya Chesnokov From shafiev at gmail.com Thu Nov 26 07:14:04 2015 From: shafiev at gmail.com (naim) Date: Thu, 26 Nov 2015 19:14:04 +0400 Subject: [SPb-pm] test In-Reply-To: References: <1448550102.894982.22800.55691@mail.rambler.ru> Message-ID: <565721BC.7060400@gmail.com> pong ok ) On 11/26/2015 07:10 PM, Ilya Chesnokov wrote: > 2015-11-26 18:08 GMT+03:00 Ilya Chesnokov : >> three > ?? ????? ?? ??????? (?????? ??????? ? moscow.pm). > >> 2015-11-26 18:01 GMT+03:00 ?????? ??????? : >>> one two >>> >>> >>> _______________________________________________ >>> Spb-pm mailing list >>> Spb-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/spb-pm >>> >> >> >> -- >> Best regards, >> Ilya Chesnokov > > From complefor at rambler.ru Thu Nov 26 07:42:30 2015 From: complefor at rambler.ru (=?koi8-r?B?88XSx8XKIPLPzcHOz9c=?=) Date: Thu, 26 Nov 2015 18:42:30 +0300 Subject: [SPb-pm] Saint Perl 7 Message-ID: <1448552550.717550.14520.60174@mail.rambler.ru> ?? ????? ?????? ? ???-???? ?????? ????? ???????? ??? ?????? ???????! ?? ???????? -- ?? ????? ????????. ?? ???????? -- ??????????? ???? ? ???? ? ???? ???????? Perl. 19 ???????, ?????-?????????, Saint Perl 7! ???? ????? ????????! http://event.yapcrussia.org/saintperl7/ -- sromanov -------------- next part -------------- An HTML attachment was scrubbed... URL: From kes-kes at yandex.ru Sat Nov 28 16:27:49 2015 From: kes-kes at yandex.ru (Eugen Konkov) Date: Sat, 28 Nov 2015 22:27:49 -0200 Subject: [SPb-pm] =?windows-1251?b?0ODh7vLgIO7v5fDg8u7w4CB8fA==?= Message-ID: <1788481339.20151128222749@yandex.ru> ???? ??????. ??????? ??????? ? || ????????? ?? ??, ??? ???????? ?????????? ?? ??, ??? ??????????????. ??????????? ? ???????????? - ?????, ??? ?? ???????? ?????? ???, ? ?? ??? ??? ?????????: @a = @b || @c; # this is wrong @a = scalar(@b) || @c; # really meant this @a = @b ? @b : @c; # this works fine, though ? ??? ???????, ??? ???? ?? ??????? ?????, ???? ?? ???? || ??????? ?????????: sub OR { my( $left, $right ) = @_; if( wantarray ) { @result = $left->(); # list return @result if scalar @result; return $right->(); } else { $result = $left->(); # scalar return $result if $result; return $right->(); } } @l = foo() OR bar(); # foo is called in list context $s = foo() OR bar(); # foo is called in scalar context ?.?. ???? || ??????? ? ????????? ?????????, ?? ????? ??????? ????????? ? ????????? ? ?????????? ??????, ???? || ?????? ? ????????? - ?????????????? ????? ??????? ????????? ???? ? ????????? ? ?????????? ??????. ??? ???????: "????" ????? ????? ??? ???? -- Eugen mailto:kes-kes at yandex.ru From victor at vsespb.ru Sat Nov 28 12:52:36 2015 From: victor at vsespb.ru (Victor Efimov) Date: Sat, 28 Nov 2015 23:52:36 +0300 Subject: [SPb-pm] =?utf-8?b?W01vc2Nvdy5wbV0g0KDQsNCx0L7RgtCwINC+0L/QtdGA?= =?utf-8?b?0LDRgtC+0YDQsCB8fA==?= In-Reply-To: <1788481339.20151128222749@yandex.ru> References: <1788481339.20151128222749@yandex.ru> Message-ID: http://www.nntp.perl.org/group/perl.perl6.language/2000/08/msg1104.html It would be nice to be able to say @a = @b || @c instead of having to resort to @a = @b ? @b : @c The reason that it is not currently possible is that C<@b> (or the list expression in its place) has to be evaluated in scalar context to determine whether to evaluate C<@c>, and that propagating context to C<@b> would require reevaluating it, which might have undesirable side effects (instead of C<@b>, it might be C). 29 ?????? 2015 ?., 3:27 ???????????? Eugen Konkov ???????: > ???? ??????. > > ??????? ??????? ? || ????????? ?? ??, ??? ???????? ?????????? ?? ??, ??? ??????????????. ??????????? ? ???????????? - ?????, ??? ?? ???????? ?????? ???, ? ?? ??? ??? ?????????: > > @a = @b || @c; # this is wrong > @a = scalar(@b) || @c; # really meant this > @a = @b ? @b : @c; # this works fine, though > > ? ??? ???????, ??? ???? ?? ??????? ?????, ???? ?? ???? || ??????? ?????????: > sub OR { > my( $left, $right ) = @_; > > if( wantarray ) { > @result = $left->(); # list > return @result if scalar @result; > > return $right->(); > } > else { > $result = $left->(); # scalar > return $result if $result; > > return $right->(); > } > } > > > @l = foo() OR bar(); # foo is called in list context > $s = foo() OR bar(); # foo is called in scalar context > > ?.?. ???? || ??????? ? ????????? ?????????, ?? ????? ??????? ????????? ? ????????? ? ?????????? ??????, > ???? || ?????? ? ????????? - ?????????????? ????? ??????? ????????? ???? ? ????????? ? ?????????? ??????. > > ??? ???????: "????" ????? ????? ??? ???? > > -- > Eugen mailto:kes-kes at yandex.ru > > -- > Moscow.pm mailing list > moscow-pm at pm.org | http://moscow.pm.org From ruslan.zakirov at gmail.com Sun Nov 29 05:30:59 2015 From: ruslan.zakirov at gmail.com (Ruslan Zakirov) Date: Sun, 29 Nov 2015 16:30:59 +0300 Subject: [SPb-pm] =?utf-8?b?W01vc2Nvdy5wbV0g0KDQsNCx0L7RgtCwINC+0L/QtdGA?= =?utf-8?b?0LDRgtC+0YDQsCB8fA==?= In-Reply-To: References: <1788481339.20151128222749@yandex.ru> Message-ID: ????????? ??? ??? ????? ??????? `1 <= $x <= 11` ? Perl6? ?? ???? ??? ?????? ????????? ????? ?????? ?????????: ???????? ? ??????? ????????? ?????????? true ??? false, ?? ????????? ??? ?????????? ?????????? ???????? $x. ??? ?????? False ?????? False ? ????? ?????????? ?????????? 2015-11-28 23:52 GMT+03:00 Victor Efimov : > http://www.nntp.perl.org/group/perl.perl6.language/2000/08/msg1104.html > > It would be nice to be able to say > > @a = @b || @c > > instead of having to resort to > > @a = @b ? @b : @c > > The reason that it is not currently possible is that C<@b> (or the list > expression in its place) has to be evaluated in scalar context to determine > whether to evaluate C<@c>, and that propagating context to C<@b> would > require reevaluating it, which might have undesirable side effects (instead > of C<@b>, it might be C). > > > 29 ?????? 2015 ?., 3:27 ???????????? Eugen Konkov > ???????: > > ???? ??????. > > > > ??????? ??????? ? || ????????? ?? ??, ??? ???????? ?????????? ?? ??, ??? > ??????????????. ??????????? ? ???????????? - ?????, ??? ?? ???????? ?????? > ???, ? ?? ??? ??? ?????????: > > > > @a = @b || @c; # this is wrong > > @a = scalar(@b) || @c; # really meant this > > @a = @b ? @b : @c; # this works fine, though > > > > ? ??? ???????, ??? ???? ?? ??????? ?????, ???? ?? ???? || ??????? > ?????????: > > sub OR { > > my( $left, $right ) = @_; > > > > if( wantarray ) { > > @result = $left->(); # list > > return @result if scalar @result; > > > > return $right->(); > > } > > else { > > $result = $left->(); # scalar > > return $result if $result; > > > > return $right->(); > > } > > } > > > > > > @l = foo() OR bar(); # foo is called in list context > > $s = foo() OR bar(); # foo is called in scalar context > > > > ?.?. ???? || ??????? ? ????????? ?????????, ?? ????? ??????? ????????? > ? ????????? ? ?????????? ??????, > > ???? || ?????? ? ????????? - ?????????????? ????? ??????? ????????? ???? > ? ????????? ? ?????????? ??????. > > > > ??? ???????: "????" ????? ????? ??? ???? > > > > -- > > Eugen mailto:kes-kes at yandex.ru > > > > -- > > Moscow.pm mailing list > > moscow-pm at pm.org | http://moscow.pm.org > -- > Moscow.pm mailing list > moscow-pm at pm.org | http://moscow.pm.org > -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: