Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/830#discussion_r12877362
--- Diff: docs/streaming-programming-guide.md ---
@@ -579,7 +582,7 @@ This is applied on a DStream containing words (say, the
`pairs` DStream containi
1)` pairs in the [earlier example](#a-quick-example)).
{% highlight scala %}
-val runningCounts = pairs.updateStateByKey[Int](updateFunction _)
+val runningCounts = pairs updateStateByKey updateFunction
--- End diff --
I wouldnt recommend this change either. We try to balance between
readability of code with Scala way of doing things. And maybe it is me but this
way of writing (without periods) is more Scala-like but harder to read for new
scala users.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. 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.
---