Github user rxin commented on the pull request:
https://github.com/apache/incubator-spark/pull/610#issuecomment-35469499
This discussion should probably have happened on the mailing list, but here
you go.
In general I think we should favor explicit type declaration in public
APIs. However, I do think there are 3 cases we can avoid the public API
definition because in these 3 cases the tpes are self-evident & repetitive.
Case 1. toString
Case 2. A method returning a string or a val defining a string
```scala
def name = "abcd" // this is so obvious that it is a string
val name = "edfg" // this too
```
Case 3. The method or variable is invoking the constructor of a class and
return that immediately. For example:
```scala
val a = new SparkContext(...)
implicit def rddToAsyncRDDActions[T: ClassTag](rdd: RDD[T]) = new
AsyncRDDActions(rdd)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. To do so, please top-post your response.
If your project does not have this feature enabled and wishes so, or if the
feature is enabled but not working, please contact infrastructure at
[email protected] or file a JIRA ticket with INFRA.
---