Closed ngtk closed 4 years ago
https://github.com/Flight-School/RegularExpressionDecoder
正規表現を用いたデコーダーの実装。
\b
の利用ExpressibleByStringInterpolation
を利用したパターン定義
CodingKeys
による置き換えhttps://twitter.com/johnsundell/status/1146408818206810113
// Swift 5.1
import UIKit
enum EyeLiner {
case thick(color: UIColor = .black)
case thin(color: UIColor = .black)
}
let e1: EyeLiner = .thick(color: .red)
let e2: EyeLiner = .thick // 🙅♂️ < compile error
let e3: EyeLiner = .thick() // 🙆♂️ < ok
https://qiita.com/koher/items/338d2f2d0c4731e3508f
some
がなんなのか分からない人向け記事protocol Animal {
func foo()
}
struct Cat: Animal {
let name: String
func foo() { print("cat") }
}
func makeAnimal() -> some Animal {
return Cat(name: "ポチ")
}
let cat1: Animal = makeAnimal()
let cat2 = makeAnimal()
MemoryLayout.size(ofValue: cat1) // 40 byte
MemoryLayout.size(ofValue: cat2) // 16 byte
ref: https://developer.apple.com/videos/play/wwdc2019/413/
今まで、個別に実行していたテストのconfiguration設定が複数作れるようになった 🎉 例えば、argumentsやenvironment、localizationなど。 作成したconfiguration分、テストを実行してくれる これで、1箇所に設定が書けるようになる。
Automatic Screenshots
をONにするとスクショを保存してくれる。
保存場所は DerivedData/PROJECT_NAME/Logs/Test/LogStoreManifest.plist
の中(分かりにくい😅)
xxx.xctestplan
というファイルが作られる公開はまだしないけど、駒の利きなども考慮して駒の移動ができるところまで実装した。 内部でビットボードの実装もしているけど、計算量や速度の考慮まではできていない。 指し手の探索や学習などといった高度なことはやらず、盤面の表現までを実装する予定。
年末くらいまでにはSwiftUIでUIも一通りつくるように頑張る 💪
Why
Where
Pearl Jam (Subject to change)
5F, MG Shirokanedai Building (Wantedly, Inc. Tokyo HQ)
Who
You are working for Wantedly? Sure, you can join anytime. If not, you need to contact us first. Or, you can "want to visit" the meetup, which you can find in www.wantedly.com/companies/wantedly/projects.
What
You write topics like below contents and we talk about these on the meetup. Every participant needs to write one topic at least.
Also, you can find new topics from the newsletters:
How
・・・
参加者は開催までに話したいことを少なくとも1トピックをコメントしましょう。 ネタ被りを避けるために、まずはタイトルだけでコメントすることを推奨します。 より多くの学びを得るためにどんな内容でもアウトプットを歓迎します!😊
cc/ @wantedly/ios
Edit this template
Previous issue