サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
ijoshsmith.com
This article examines two implementations of a logic puzzle written in Swift. The first example uses an imperative programming style, which is the style familiar to most iOS developers. Then we see the same small program written in a functional style, which is facilitated by several Swift language features. Get the source code at https://github.com/ijoshsmith/break-a-dollar The logic puzzle A few
The Swift language supports custom operator functions, similar to operator overloading in C++. This kind of language feature has been known to enable overly “enthusiastic” developers to create a quagmire of unreadable code, which is why I was surprised to see it included in Swift. However, when used with careful consideration and restraint, defining new operators can yield elegant and expressive c
このページを最初にブックマークしてみませんか?
『ijoshsmith.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く