Why does
var y = 5
y.inc()
Act more like
var y = 5
y+1
than y++ ?
The operator inc maps to ++ so I would assume the behavior on int would be same…why is it different?
Why does
var y = 5
y.inc()
Act more like
var y = 5
y+1
than y++ ?
The operator inc maps to ++ so I would assume the behavior on int would be same…why is it different?