タグ

ブックマーク / swift.org (1)

  • Swift.org

    Swift is a general-purpose programming language that’s approachable for newcomers and powerful for experts. It is fast, modern, safe, and a joy to write. struct Binomial: Codable { var genus: String var species: String var subspecies: String? } let tree = Binomial(genus: "Pin", species: "oak") let jsonData = try JSONEncoder().encode(tree) // {"genus":"Pin","species":"oak"} struct ScientificName {

    Swift.org
    YaSuYuKi
    YaSuYuKi 2015/12/04
    面白くなってきた
  • 1