logoalt Hacker News

jolt42last Wednesday at 5:26 PM2 repliesview on HN

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


Replies

lizmatlast Thursday at 11:33 AM

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")

?
librastevelast Wednesday at 6:27 PM

hmmm Raku is C style

  int number;

 … you choose Pascal style

  number : Integer;
show 1 reply