logoalt Hacker News

librastevetoday at 8:33 AM1 replyview on HN

thought I’d try the showcase example in Raku (https://raku.org), so this Gleam

  import gleam/io

  pub fn main() {
    io.println("hello, friend!")
  }
becomes this Raku

  say “hello, friend!”
well maybe you really want to have a main() so you can pass in name from the command line

  #!/usr/bin/env raku

  sub MAIN($name) {
    say "hello, $name!”
  }

Replies

okkdevtoday at 9:47 AM

Raku looks sweet, but what is the point of this comparison? :)

show 1 reply