以下の内容はhttps://giarrium.hatenablog.com/entry/2021/10/20/204240より取得しました。


124日目

日記

ご飯を炊くのがめんどくさかったので今日の夕飯は麻婆うどんです

今日書いたコード

https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#grammar_union-style-enum-case

protocol SomeProtocol {
    static var someValue: Self { get }
    static func someFunction(x: Int) -> Self
}
enum MyEnum: SomeProtocol {
    case someValue
    case someFunction(x: Int)
}
let someProtocol: SomeProtocol = MyEnum.someValue
print(type(of: someProtocol).someValue) // someValue

感想

これ言われてみるとなるほどなぁという感じだった.




以上の内容はhttps://giarrium.hatenablog.com/entry/2021/10/20/204240より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14