Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

String length

10 views
Skip to first unread message

Mark Reed

unread,
Aug 17, 2006, 12:30:16 PM8/17/06
to perl6-l...@perl.org
S02 states that there is no ".length" method on Str's (or for cumulative
element length of Arrays); you have to ask explicitly for the units you
want to count . But then it goes on to define the StrPos and StrLen
types, which are unit-agnostic. So why not have a .length that returns
a StrLen? I envison some method or sub wanting to have access to the
length of a string, without necessarily having the string itself
available, in a context where the caller wouldn't know what level of
Unicode abstraction to use.
0 new messages