top | item 46529302

(no title)

jolt42 | 1 month ago

There's so many languages out there, I reject Raku out-of-hand simply since IMO the type should follow the variable name.

discuss

order

lizmat|1 month ago

You mean like:

    my $a of Int = 42;
    say $a;  # 42
or

    my $a of Int = "foo";'       
    # Type check failed in assignment to $a; expected Int but got Str ("foo")

?

librasteve|1 month ago

hmmm Raku is C style

  int number;

 … you choose Pascal style

  number : Integer;

jolt42|1 month ago

Very good, I wrote Pascal many years ago, but I was thinking more Kotlin/Scala (right?) vs Java.