<div class="chatlog__message-group"> <div id="chatlog__message-container-484211341931053104" class="chatlog__message-container" data-message-id="484211341931053104"> <div class="chatlog__message"> <div class="chatlog__message-aside"><img class="chatlog__avatar" src="https://cdn.discordapp.com/avatars/189711109966659584/95280765d1be73ce985dce15ea3585f6.png?size=512" alt="Avatar" loading="lazy"></div> <div class="chatlog__message-primary"> <div class="chatlog__header"><span class="chatlog__author" style="color:rgb(237,171,161)" title="omochimetaru" data-user-id="189711109966659584">omochimetaru</span> <a href="/channels/319688664240357376?category=main&channel=other-lang&message_id=484211764205191199"><span class="chatlog__timestamp" title="Wednesday, August 29, 2018 4:03 AM"></span></a><a href="#chatlog__message-container-484211341931053104">8/29/2018 4:03 AM</a></div> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve">2つのジェネリックな値を持ってその関係を規定できるから generic protocol のように機能しますね</span></div> </div> </div> </div> <div id="chatlog__message-container-484211433366618116" class="chatlog__message-container" data-message-id="484211433366618116"> <div class="chatlog__message"> <div class="chatlog__message-aside"> <div class="chatlog__short-timestamp" title="Wednesday, August 29, 2018 4:03 AM">4:03 AM</div> </div> <div class="chatlog__message-primary"> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve">構文のスタイルとしてはRustやSwiftより Haskell の type class に近い気がします</span></div> </div> </div> </div> <div id="chatlog__message-container-484211692264226818" class="chatlog__message-container" data-message-id="484211692264226818"> <div class="chatlog__message"> <div class="chatlog__message-aside"> <div class="chatlog__short-timestamp" title="Wednesday, August 29, 2018 4:04 AM">4:04 AM</div> </div> <div class="chatlog__message-primary"> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve">SwiftのprotocolやRustのtraitは雰囲気をクラス指向に寄せてとっつきやすくしたと思うけど</span></div> </div> </div> </div> <div id="chatlog__message-container-484211764205191199" class="chatlog__message-container" data-message-id="484211764205191199"> <div class="chatlog__message"> <div class="chatlog__message-aside"> <div class="chatlog__short-timestamp" title="Wednesday, August 29, 2018 4:04 AM">4:04 AM</div> </div> <div class="chatlog__message-primary"> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve">Goのcontractはそういう意味では難しいHaskellに戻ってる雰囲気がする。</span></div> </div> </div> </div> </div>