[pm-h] September Houston.pm Meeting: An Intro to the Qore Language for Perl Programmers

Reini Urban rurban at x-ray.at
Mon Aug 29 06:23:52 PDT 2011


2011/8/29 G. Wade Johnson <gwadej at anomaly.org>:
> Brett Estrade has volunteered to make a quick presentation on the Qore
>language.
>The basics of the Qore language will be introduced from the perspective
>of a Perl programmer, include basic data structures, object oriented
>capabilities, and multi-threading. Ideas for future talks regarding
>Qore, Perl threading/asynchronicity, and using Qore with Perl will be
>discussed by all.

http://qore.org/manual/comments/Variables.html

our int $a = 1;                    # this is a global variable
our (string $b, any $c, hash $d);  # list of global variables

if ($a == 1) {
    my int $a = 2;
    my (string $b, any $c);
    # $a, $b, and $c are local variables,
    # the use of which will not affect the
    # global variables of the same name
    print("local a = %d\n", $a);
}

print("global a = %d\n", $a);

Hey, that looks exactly like the new perl 5.18 with use types!
Optional strong typing with perl syntax. Love it.

Just the "any" type is superfluous, and hash and list are only arguably
"better" than our @ % sigils.
-- 
Reini Urban


More information about the Houston mailing list