[請益] 想請教這句話後面的 otherwise fail

作者: heartsky7 (身寸☆不止)   2016-11-13 00:20:53
Use this approach if you need to add a potential failure state
to an existing initialization process that does not otherwise fail.
想請教各位板友~
這句話最後面的that does not otherwise fail.
是勿論如何都不會失敗的意思嗎
前面我的理解是 :
用這個方法,如果你需要增加一個淺在可能會失敗的狀態 在已存在的初始化process上
那這將無論如何不會失敗
請問這樣翻譯對嗎 還是我的理解錯誤了
感謝..
作者: gentianpan   2016-11-13 09:27:00
這是在講最新 linux 的 compile macro unlikely() 嗎?
作者: stanley333 (jj)   2016-11-13 09:47:00
如果你認為一個初始化(不會有失敗)的過程會有失敗的可能性,就改用這個(可靠)方法去做
作者: perist   2016-11-13 10:37:00
都不對 這邊otherwise是"在其他方面"的意思如果你需要增加一個潛在失敗狀態到一個已存在且在其他方面都不會失敗的初始化過程 那就用這個方法吧
作者: heartsky7 (身寸☆不止)   2016-11-13 22:53:00
謝謝樓上各位大大 原來是其他方面 感謝gent大 這是Swift的Initialize的章節

Links booklink

Contact Us: admin [ a t ] ucptt.com