hankache / rakuguide

The Raku Guide

Home Page:https://raku.guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introducing subs a little more clearly?

MattOates opened this issue · comments

7.1. Definition

The π is a constant Num in Perl 6 this section kind of makes that a bit confusing, especially as τ is also conceptually a constant rather than a function in maths too. I'm not really convinced showing people a maths symbol name for a sub is the most obvious either for a first example. If you really wanted to show unicode support why not a cat emojii that says meow? Or something equally dumb but perhaps a little less obtuse? Especially as the next signature example is a hello person example anyway?

Hi Matt, You're absolutely right. I think we need another example for subs.

I think unicode support would better fit in a chapter on its own.

What do you think?

Thank you for your feedback :)

Example changed.
Added a new unicode chapter