Avatar
omochimetaru 2/3/2021 7:23 AM
Hi all, Here's a pitch for a feature that expands #if functionality to postfix member expressions. I'll keep an update-version of this proposal here. Implementation is here #if for postfix member expressions Swift has conditional compilation block #if ... #endif which allows code to be conditionally compiled depending on the value of one or m...
7:24 AM
りんたろーさんがピッチ出してて、 メソッドチェーンを #if できるようにする話 baseExpr #if CONDITION .someOptionalMember? .someMethod() #else .otherMember #endif
7:25 AM
おしゃれと思ったら、 >>2 でラトナーが、Swiftの #if の路線間違いだったと思うって書いててビックリ
7:25 AM
そのあとakyさんと意見交換してて面白い。