Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Postfix increment is not supported in Swift 3, isn't it?
Here is what I've got after running the code ---------- var a = 3 let b = a++ let c = -b print (c) ---------- in online sandbox: ERROR at line 5, col 10: '++' is unavailable: it has been removed in Swift 3 let b = a++ ^~ += 1
2 Respostas
0
Yes. Increment and decrement operators are not supported in Swift 3.
Instead of ++, you need to write += and instead of -- you need to write -=
0
Strange, because those operators are universal (php, c++, js)