官术网_书友最值得收藏!

The function naming convention

The conventions for naming functions in Kotlin are similar to that of Java. When naming methods, camel case is utilized. In camel case, names are written such that each word in the name begins with a capital letter, with no intervening spaces or punctuation:

//Good function name
fun sayHello() {
println("Hello")
}

//Bad function name
fun say_hello() {
println("Hello")
}
主站蜘蛛池模板: 大英县| 平塘县| 丘北县| 乳山市| 遵化市| 长泰县| 久治县| 英吉沙县| 巨鹿县| 高陵县| 酉阳| 玉田县| 东乌| 姚安县| 凯里市| 昆明市| 星子县| 临安市| 彰武县| 静乐县| 延吉市| 铁岭县| 云南省| 连平县| 蒙城县| 苏尼特左旗| 兴国县| 宜川县| 乳山市| 罗平县| 康平县| 德化县| 永川市| 竹北市| 鄂伦春自治旗| 北海市| 万源市| 大姚县| 永州市| 惠安县| 慈利县|