6
Hızlı yap-dene-yakala sözdizimi
Ben hızlı 2 yeni bir hata işleme şey anlamak için bir deneyin. İşte yaptım: İlk önce bir hata enum ilan: enum SandwichError: ErrorType { case NotMe case DoItYourself } Ve sonra bir hata atan bir yöntem (istisna millet değil. Bu bir hatadır.) İlan ettim. İşte bu yöntem: func makeMeSandwich(names: [String: …