If we are not sure it is a defect?


#1

I've got to say I'm pretty excited about Kotlin.  I'm not a heavyweight programmer and I don't have formal cs training nor compiler/language design experience. I'm hoping my view as a mid level developer will be helpful.

I’creating a set of examples and will put that into github when I have a good number of examples to start with.


How would you like us to handle cases where we are not sure certain behavior is a defect? Do we pot a message here or just do a defect ticket and let it get evaluated that way?

For example:

  var i=1
  var j=3
  println(i)
  println(i + j)
  println(“The value of i:” + i)
  // is this a defect that we have to cast i.toString()
  println(i.toString() + " is the value of i")

println(i + " is the value of i") does not compile

Kotlin: None of the following functions can be called with the arguments supplied:
public final fun plus(other : jet.Float) : jet.Float defined in jet.Int
public final fun plus() : jet.Int defined in jet.Int
public final fun plus(other : jet.Long) : jet.Long defined in jet.Int
public final fun plus(other : jet.Byte) : jet.Int defined in jet.Int
public final fun plus(other : jet.Double) : jet.Double defined in jet.Int
public final fun plus(other : jet.Short) : jet.Int defined in jet.Int
public final fun plus(other : jet.Char) : jet.Int defined in jet.Int
public final fun plus(other : jet.Int) : jet.Int defined in jet.Int

Thanks
Eric


#2

It's OK to file an issue in the tracker right away, just don't get upset if your issue gets closed with resolution "As Designed"

The case you mentioned is not a defect, use string templates instead: “$i is the value of i”