News for hackers. Stuff that matters.
Re:Kotlin: A statically-typed language that compiles to JVM ... by camus2 on Sunday November 10, 2013 @02:51PM (#6708112)
> the underscore (_) has six different meanings depending on where it's used.

no it has not ,it always express some kind of default behavior. just like ! in ruby method means mutation or ? means it returns a boolean.

> The number of syntactic rules is not a good way to judge whether a language is difficult to read, otherwise, Brainfuck would be the most readable language on the planet.

But we are not talking about Brainfuck.

Re:Kotlin: A statically-typed language that compiles to JVM ... by laureny on Sunday November 10, 2013 @03:01PM (#6708158)
> > the underscore (_) has six different meanings depending on where it's used.

> no it has not ,it always express some kind of default parameter.

You might want to refrain from commenting on a topic you don't seem to know much about.

I was wrong when I said "six", it looks like the number is up to eleven today. Here is a short list:

- Existential types

- Higher kinded type parameters

- Ignored variables

- Ignored parameters

- Wildcard patterns

- Wildcard imports

- Hiding imports

- Joining letters to punctuation

- Assignment operators

- Placeholder syntax

- Partially applied functions

More details: http://stackoverflow.com/questions/8000903/what-are-all-the-...

Re:Kotlin: A statically-typed language that compiles to JVM ... by camus2 on Sunday November 10, 2013 @03:13PM (#6708213)
> You might want to refrain from commenting on a topic you don't seem to know much about.

the underscore is not an operator.that's why you are listing random stuffs that are not related. It express an intent, see my previous message.

You might want to stop patronizing people you dont know. Or your head is too big for that.

Re:Kotlin: A statically-typed language that compiles to JVM ... by laureny on Sunday November 10, 2013 @08:27PM (#6709424)
> it express an intent, see my previous message.

Actually, it can express eleven intents, depending on where it's being used.

Re:Kotlin: A statically-typed language that compiles to JVM ... by cdcarter on Sunday November 10, 2013 @04:31PM (#6708533)
! in ruby means "dangerous", which is actually poorly defined. In some major libraries it is used to mean exception raising, in some it means self-mutation.

  The bang (!) does not mean "destructive" nor lack of it mean non
  destructive either.  The bang sign means "the bang version is more
  dangerous than its non bang counterpart; handle with care". Since
  Ruby has a lot of "destructive" methods, if bang signs follow your
  opinion, every Ruby program would be full of bangs, thus ugly.
-matz