Jaana Dogan ヤナ ドガン@rakyll·Jan 2, 2018Embedding is not inheritance. #golang https://rakyll.org/typesystem/21545
Brendan Zabarauskas@brendanzabReplying to @natbobc @andygocke and @rakyllI'd recommend looking at how Rust does this. Say, if I have a `User { id: Uuid }` struct, the only way to construct it would be to supply a Uuid. Otherwise compilation fails: https://play.rust-lang.org/?gist=23a15296df5358c21abd797b63bf7aaa&version=stable…9:19 PM · Jan 3, 2018·Twitter Web Client1 Like