2 ms·
That Val site provides the following example, which makes no sense to me: public fun main() { let weight = 1.0 print(weight) // 1.0 let length =
by tialaramex 4y ago
That Val site provides the following example, which makes no sense to me:
public fun main() {
let weight = 1.0
print(weight) // 1.0
let length = 2.0
print(length) // 1.0
}
Is the behaviour of print "Just print whatever the first variable was forever" ? Is this example wrong ?