back

by emptybits·6y ago·view on hn ↗
I love Python and I don't see the subset of the world dominated by Python changing to Raku any time soon. But there are some things that made me smile and nod and want to read more about the language. Two, off the top of my head.

1. Raku treats math in a manner that wouldn't surprise a mathematician. Or grade school student, for that matter. Witness:

    $ python3 -c 'print(0.3 == 0.1 + 0.2)'
    False
    $ ruby -e 'puts 0.3 == 0.1 + 0.2'
    false
    $ perl6 -e 'say 0.3 == 0.1 + 0.2'
    True
(Raku prefers rational to floating point math when possible, but of course you can force floating point if you prefer that behaviour.)

2. Concurrency is a language goal in Raku and I think that's notable, compared to Python. Parallelism, concurrency, and asynchrony including multi-core support.[1]

[1] https://docs.perl6.org/language/concurrency

1 comments
As a Perl programmer, this is basically a post I might have written (aside from knowing it's not dominant anymore :) One more really cool aspect is the first class Unicode support, which Perl can do but you have to work at it.