Avatar
gysb自分で使ってみたけどいい感じ テンプレート https://github.com/omochi/ReactiveEmitter/blob/master/Sources/ReactiveEmitter/Operator/Combine.swift.gysb 生成物 https://github.com/omochi/ReactiveEmitter/blob/master/Sources/ReactiveEmitter/Operator/Combine.swift gyb使ったときに比べてよかったのは
  • 静的チェック (変数名の typo が検出できた )
  • 三項演算子が便利 (例: ${ i < n-1 ? ",": "" })
ReactiveEmitter - Lightweight observable in Swift seen from EventEmitter in JavaScript.
ReactiveEmitter - Lightweight observable in Swift seen from EventEmitter in JavaScript.
👍 1
3:28 AM
  • joinedが [String] のメソッド (pythonだと separator.join([s0, s1, s2])