i was just looking at ALS
(mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala)....

any need all the variables need to be vars and to have all these setters
around? it just leads to so much clutter

if you really want them to the vars it is safe in scala to make them public
(scala creates setters and getters anyhow for you, so you can change a var
to methods later if you want other variables, without breaking APIs).

but a more scala-friendly style would be vals and no setters...

best, koert

Reply via email to