在迅速,是否有可能使用較短的guard let try?和如果進入else塊,會得到發生異常? guard let smth = try? myThrowingFunc() else {
print(error) //can I access the exception here somehow?
return
}
VS let smth: AnyObject?
do
我想將我的(PhoneGap)應用程序的www/部署到Heroku。我更喜歡HAML/SASS/CoffeeScript,所以我創建了一個Guardfile來自動生成HTML/CSS/JS並從src/複製到www/。我加www/到.gitignore。我想部署到Heroku並有rake assets:precompile生成'slug'/ www/目錄。我根據Guard example requi