Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mistakes and remove subjective opinions in Comparison to Scala for fair comarison. #429

Closed
wants to merge 2 commits into from

Conversation

kmizu
Copy link

@kmizu kmizu commented Mar 9, 2016

I would like to fix (many) mistakes and correct unfair comparison.

rather than to advance the state of the art in programming language research.

Its' not correct. Scala is not a language to advance the state of the art in programming language research but a pragmatic language. As witness, there are many Scala users in industry.

Implicit conversions, parameters, etc

Why did you use a word like etc? I removed the word etc from this sentence.

In Scala, sometimes it’s very hard to tell what’s happening in your code without using a debugger, because too many implicits get into the picture

Because implicit conversions and parameters are resolved in compile time, the debugger is useless in such a case.

Complicated logic for initialization of traits

It's only your subjective opinions. You should write facts.

Yield operator

Scala has no 'yield' operator(yield is just a keyword used in for-expression.

See Type-safe Groovy-style builders

Kotlin's Type-safe Groovy-style builders are not features but just techniques using function type with receiver. It's moved to list item 'function type with receiver', which is a correct feature in Kotlin.

We plan to support Project Valhalla once it is released as part of the JDK

In serious comparison to actual language, a word such as plan should not be used. And project Valhalla is just a vapor ware now yet.

Actors

Scala no longer has Actor library in the standard library(Scala 2.11). Akka is defato standard Actor library in Scala.

Member references

Scala has member references. See below:

def  isOdd(x: Int) = x % 2 != 0
val numbers = List(1, 2, 3)
println(numbers.filter(isOdd _)) // prints List(1, 3)

Also implemented via 3rd party plugin: Autoproxy

Autoproxy is obsolete because few people used it.

@kmizu
Copy link
Author

kmizu commented Mar 19, 2016

Additionally, Type-safe Groovy-style builders is also can be built upon Scala. See ScalaFX. Or else, macros enable Scala library designers to create such libraries. However, it shouldn't be noted that Scala has Groovy-style builders, of course. To avoid meaningless comparison, such a sentence should be removed.

@kmizu kmizu closed this May 6, 2016
@kmizu kmizu deleted the fix-comparision-to-scala branch May 6, 2016 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants