6 ms·
> the contextually nonsense word 'what'. I don't buy that it's contextually nonsense. I suspect you had a bad reaction to it and have gotten caught up in that
by raiph 11y ago
> the contextually nonsense word 'what'.
I don't buy that it's contextually nonsense. I suspect you had a bad reaction to it and have gotten caught up in that initial reaction. I could be wrong about that but your stated perspective is noticeably extreme and unique about a relatively tiny point.
> if you're being very generous it means "What is 3?" (asking for its value).
I don't think that's being especially generous. But yes, please be generous. :)
I don't think it's asking for its value.
What is Belgium? (Country)
What is HN? (Time Sink)
What is `4 -3i` ? (Complex Number).
What is $age? (Int)
If you want a value you just write something like:
say 3; # 3
say $age; # 55
> You asked what I would suggest?
Well I intended my comment for epidemian, but OK. :)
> If you want to be really cute
Perl 6 explicitly incorporates fun but also explicitly avoids "you think that's cute today" mistakes.
I like the choice of names for the pseudo method mop macros: what, which, where, who, why, how, etc. But that's partly because: I find them easy to remember as a group; I found them easy to understand once I'd encountered them once; and I've not seen anyone react negatively to any of them the way you have.
----
Anyhoo, I hope you won't let your dislike for the rarely used .WHAT et al to unduly color your view of Perl 6. I don't expect the tutorial that's the topic of this HN to impress anyone but that's because it deliberately sticks to absolute basics. Instead, I urge you to wait until next year, and then take another look; I think you'll see there's a lot to like.