On Tue, Jun 10, 2014 at 9:21 PM, Alain Marcel <[email protected]> wrote:

>
>
>> Hi !
>>
> I admit that indexOf differences in java String and Array  is slightly
> confusing.
> Akka ByteString.index is like Array.indexOf and not String.indexOf...
> Choice is difficult with ByeString parameter ...
> Add a warning ?
>

How would we do that? In the documentation, or?


> Add a method that behave as String.indexOf() ?
>

Overloading is not encouraged, especially when the 2 different versions
will be clashing in terms of validity.


> Hope somebody will have a magic solution !
>

Magic is never the right solution. ByteString.indexOf is consistent with
(all?) scala collections, so String is the odd one out here.


>
> Fortunately, such confusing stuff are very rare.
> Thanks for all your responses and all good job around scala / akka.
> Alain
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to