[akka-stream] immutable.Seq in Transformer

24 views
Skip to first unread message

Alexey Romanchuk

unread,
Jun 11, 2014, 1:41:53 AM6/11/14
to akka...@googlegroups.com
Hello hakkers!

Why immutable.Seq used in Transformer#onNext signature? It forces nested classes to use immutable.Seq instead of general Seq. And then we unable to use simple Seq(1, 2, 3).

I suggest to use scala.collection.Seq in method declaration.

Thanks!

√iktor Ҡlang

unread,
Jun 11, 2014, 1:46:50 AM6/11/14
to Akka User List
We always use immutable datastructures wherever possible to do so.
use: immutable.Seq(1,2,3)


--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,

Alexey Romanchuk

unread,
Jun 11, 2014, 1:49:52 AM6/11/14
to akka...@googlegroups.com
got it. thanks!
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/U9fdHBtXbkU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages