\@list.min
In Perl 6 that would be @array.min, as arrays themselves are objects. Note that @list is misleading as it is an ARRAY not a LIST. In English they may be similar, but in code it is very important to make the distinction.
| [reply] [d/l] [select] |
| [reply] [d/l] |
@no_matter_what_i_am_called_i_am_an_array
The @ defines precisely what is meant.
Correct. Note that I said "misleading", not "wrong" or "incorrect" :)
It's as misleading as @hash and %scalar are. It is of course obvious that the former is an array and the latter is a hash.
| [reply] |
So, you're implying that it will be illegal to use 'list' as an array name in Perl6? What on earth are you talking about?
Also, he was backslashing the @ because \@list.min was in an interpolating heredoc.
| [reply] [d/l] |
So, you're implying that it will be illegal to use 'list' as an array name in Perl6? What on earth are you talking about?
No, I usually don't imply anything. I'm just saying that naming an array "list" is misleading. It is neither wrong nor illegal. Just misleading, as it might strengthen some people's beliefs that arrays and lists are the same things.
Also, he was backslashing the @ because \@list.min was in an interpolating heredoc.
I hadn't thought of that. I always use quotes around my heredoc terminator specification and thought non-interpolating was the default.
| [reply] |
Also, he was backslashing the @ because \@list.min was in an interpolating heredoc.
For a moment, I thought so too. But then I dismissed it, as
he didn't escape the $ sigils.
Abigail
| [reply] |