[ 
https://issues.apache.org/jira/browse/FLINK-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14485228#comment-14485228
 ] 

Stephan Ewen commented on FLINK-1847:
-------------------------------------

I am actually seeing a common Scala pitfall here: Calling the parenthesis-less 
method with parenthesis is a call to the method + apply(). That returns of 
course something different.

The distinction between parenthesis-less methods and methods with empty 
parenthesis is very tricky and needs to be done very carefully.

I doubt, I would always add parenthesis. Less error-prone...

> Change Scala collect() method to return a Seq
> ---------------------------------------------
>
>                 Key: FLINK-1847
>                 URL: https://issues.apache.org/jira/browse/FLINK-1847
>             Project: Flink
>          Issue Type: Bug
>          Components: Scala API
>    Affects Versions: 0.9
>            Reporter: Stephan Ewen
>
> Right now, the method is very specific in returning {{mutable.Buffer}}. 
> Changing it to {{Seq}} allows us to alter the underlying representation 
> without breaking the API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to