News for hackers. Stuff that matters.
Re:Is Perl 6 Being Renamed? by daotoad on Friday August 30, 2019 @12:01PM (#20839839)
The 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.

There are no comments on this comment yet.