Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 ML 中是否有可能捕获所有可能的异常?例如,如果我不知道可能是什么异常
该handle语句允许您对异常进行模式匹配,因此您可以使用类似的东西handle _来匹配任何东西,例如
handle
handle _
hd [] handle _ => 0