Both Scala and Go have similar type declaration syntax, with type name on the right.
Scala:
class Person(first: String, lastName: String)Go:
func needInt(x int) int {return x * 10 + 1}
class Person(first: String, lastName: String)Go:
func needInt(x int) int {return x * 10 + 1}
No comments :
Post a Comment