Avatar
ラベルも付けれない。 1> infix operator +- 2. func +-(lhs: Int, rhs: Int) -> Int { 3. return lhs + rhs - 1 4. } 5> (+-)(2, 5) $R0: Int = 6 6> (+-)(lhs: 2, rhs: 5)
8:54 AM
1> infix operator +- 2. func +-(lhs lhs: Int, rhs rhs: Int) -> Int { 3. return lhs + rhs - 1 4. } error: repl.swift:2:9: error: operator cannot have keyword arguments func +-(lhs lhs: Int, rhs rhs: Int) -> Int { ^~~~ error: repl.swift:2:23: error: operator cannot have keyword arguments func +-(lhs lhs: Int, rhs rhs: Int) -> Int { ^~~~
8:57 AM
@Kishikawa Katsumi 見つけました。 https://twitter.com/aqubi
IOS App Developer. co-founder of http://flaskapp.com/. I love gadget, rabbit, making new things.
Tweets
12356
Followers
1087