#`(
Multiline comments use #` and a quoting construct.
(), [], {}, 「」, etc, will work.
)
This level of flexibility in how you make comments seems a bit... odd #`(
Multiline comments use #` and a quoting construct.
(), [], {}, 「」, etc, will work.
)
This level of flexibility in how you make comments seems a bit... oddFor example all of the literate style POD6 comments are accessible within a variable as a fully structured tree in the $=pod variable. The 'q' quoting context in the main language allows you to use any matched quote/bracket from unicode as the markers of the start and end of a string or regex, or comments as you've picked up on.
This is super helpful if you want all sorts of weird quotes and brackets inside of a string and still have it interpolated for variables for example.
say q⧚This string has a "'weirdly quoted bit in'"!⧛;
Will print out: This string has a "'weirdly quoted bit in'"!
To see some examples of how extreme you can have these characters be from unicode check out http://xahlee.info/comp/unicode_matching_brackets.htmlYou still have to check the docs for the dunder variables in Python. Having the same special character convention (like __var__) doesn't magically make me aware of what they all are and what they all mean. And, I've done enough Python programming to know it's a crapshoot to google for them (just as it's a crapshoot to google for sigils and twigils in Perl). You just have to know where to look for the right docs or know who to ask for where to look for the right docs (perldoc perlvar, in the case of Perl...I assume there's something similar for Perl 6, and I don't remember what it is for Python).
I was saddened when I saw that someone who loves Perl 6 used the word 'moron'. It is "closely tied with the American eugenics movement" according to wikipedia and is a deprecated diagnostic categorization of someone having a mental age of 8-12 years old -- an audience we supposedly wish to attract, not repel.
I'm not at all meaning any moral judgement. I've used such words myself in the past in much more terrible and significant ways. I'm just feeling low about how unkind we can sometimes be to others and sad to see these few opportunities on HN to discuss Perl 6 ending up sidetracked not only by what might be called trolling but also by seeing P6ers (including me sometimes) making things worse.
I thank you for and want to help sustain your passion about the technical aspects of Perl 6. I'm also hoping to encourage more compassionate ways of connecting with all folk, including trolls, and to being passionate about that too.
And a merry new year to all. :)