Perl 6 - the future is here, just unevenly distributed

IRC log for #testml, 2012-12-30

| Channels | #testml index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
04:42 ingy rking: I think instead of looking up methods by type of invocant, I will cast the invocant to the type required by the method
04:43 ingy actually I think that's how testml.pm already does it
04:43 ingy also many functions are polymorphic
04:48 rking ingy: (?)
04:58 ingy rking: more just thinking outloud I guess
04:58 ingy I'm not really sure where methods will come from
04:58 ingy probably best to just write lots of tests and see what works best
04:59 ingy Chomp is polymorphic for instance
04:59 ingy it works on Str or StrList
05:00 ingy there are very few types so far
05:00 ingy Bool Num Str Null and List
05:00 ingy I think List is subtyped to one of the scalar type
05:01 ingy I can put all the standard functions into TestML::Library::Standard
05:02 ingy and have them assert the type they want
05:02 ingy possibly casting is available
05:02 ingy but I just need to see where the demographics lie
05:11 ingy actually, since a.b(c) and s(a, c) are exactly the same, I really don't have an invocant
05:12 ingy sorry, b(a, c)
05:12 rking Maybe I follow the problem.
05:12 ingy list.Join(str)  or   Join(list, str)
05:13 ingy I just need a List and a Str
05:14 ingy Join: List -> Str -> Str
05:14 ingy is the func signature
05:15 ingy I need to dice into Perl 6 next
05:15 ingy see what's going on in there
05:15 ingy *dive
05:15 rking What's going on at what level?
23:19 ingy rking: back on the ole green bar
23:19 ingy I
23:43 ingy The rKing and I(ngy)

| Channels | #testml index | Today | | Search | Google Search | Plain-Text | summary