Re: WATs (Array[Str] vs Array and list vs scalar assignment)

2018-09-05 Thread Vadim Belman
I agree to the most of your writing. Just a couple of notes. > > my Array[Str] $a = ["a", "b", "c"]; > > my Str @a = ["a", "b", "c"]; > > > First, there's co/contra variance of sub-typing. The first paragraph of > wikipedia page is > https://en.wikipedia.org/wiki/Covariance_and_contravariance_(

WATs (Array[Str] vs Array and list vs scalar assignment)

2018-09-05 Thread Ralph Mellor
Hi Vadim, This is for you and anyone else interested in a little bit about tricky aspects of sub-types, of P6, of my perspective on learning in response to WTF? moments, and P6 strengths and weaknesses in relation to the foregoing. Vadim wrote: > my Array[Str] $a = ["a", "b", "c"]; > my Str @a =