3 ms·
I think so. I regularly use JS and Java in daily life and used to use a whole host other languages in the past. Perl 6 is actually a joy to code in, as weird
by alabamenhu 7y ago
I think so. I regularly use JS and Java in daily life and used to use a whole host other languages in the past.
Perl 6 is actually a joy to code in, as weird as that sounds. It's fairly straightforward to begin using, but the deeper I go the more I see the huge benefit to its long development which was mainly in spec-writing. The two killer features (for my work, at least) have been the grammars (a sort of regex on steroids that is actually readable) and the multiparadigm approach. I mean you can do functional coding with Javascript sort of, but you end up with a lot of extra line noise compared to P6 where it was contempalted from the beginning (and multisubs clear things up even more). All the typical paradigms are integrated fairly seamlessly to let you choose the best tool for the job for whatever block of coding you're working on.
- daotoad 7y agoThe type system and multiple get rid of so much “if this then do that” code. multi sub eat-pie( Pie slice where *.is-custard ) { ... } multi sub eat-pie( Pie slice where *.is-fruit ) { ... } multi sub eat-pie( Pie slice ) { ... } eat-pie( a-slice-of-pie ); That’s just awesome.