Wow. This will make a few people happy who think underlines and camel case are ugly.
Wow. This will make a few people happy who think underlines and camel case are ugly.
Kebab notation makes sense in other contexts, like DOM IDs and CSS class names. It does not make sense in a case like that.
What is a mis-feature is you can't assign-create to these variables when they're part with sigil-bearing variables, so, for example, here I ended up using a sigiled-Δ, which isn't as pretty :) https://github.com/zoffixznet/perl6-Color/blob/master/lib/Co...
Fwiw you can assign to such "raw" nouns if you declare that the raw noun you're declaring refers in turn to a rw container. For example, a plain `$` is a container (an anonymous Scalar):
my \Δ = my $ = 100;
Δ = 200;
I came up with the following idiom when pondering snippets on twitter and the fundamental problem that twitter treats strings of the form `@foo` as twitter handles which messes up the formatting of tweets containing `@` sigil'd nouns: my \array =@= 1,2,3; array[2] = 200; say array;
displays [1 2 200]It can be mis-applied. It arguably has been mis-applied in this example. But I can also argue it the other way. It depends on whether the intro's goal is to address overly simplistic general criticisms ("sigils are ugly and unnecessary!") or to inculcate mature understanding from the get go.
Sigils denote the nouns of the language. They are there for your benefit,not the compiler's.