Hacker News new | ask | show | jobs
by awwaiid 1985 days ago
I think that in some ways the semantics of Raku are closer to Ruby than to Perl5. https://docs.raku.org/language/rb-nutshell is a ruby-to-raku walk through. Among other things, Raku has first-class Roles that I think Ruby should consider adopting. In Raku the sigils (symbols prefixing variables) give an immediate indicator as to a general role that the variable implements -- so $ for single-values, @ for lists, % for dictionaries (hashes), & for callables. That adds a lot of "noise" that makes Raku look different, but under that it is like a lot of modern dynamic OO languages ... lots of objects and method invocations with a few JSON like built in types.