青年中文青年中文

case clause的意思

case clause中文翻譯:

情況字句

相似詞語短語

clause───n.條款;[計]子句;n.(Clause)人名;(法)克洛斯

case case───案例案例

case───n.情況;實例;箱;vt.包圍;把…裝于容器中;n.(Case)人名;(英)凱斯;(西)卡塞;(法)卡斯

beneficiary clause───[財]受益人條款

codefendant clause───共同被告條款

participial clause───分詞從句

disinheritance clause───剝奪繼承權條款

convertibility clause───轉換條款

infinitive clause───不定式從句

雙語使用場景

Finally, when designing pattern matching statements, be wary of relying on a default case clause.───最后,當設計模式匹配指令時,對于默認case的依賴要小心。

We’re most interested in the embedded p @ Person(…) inside the case clause.───我們最關心的是嵌套在case 子句的p @ Person(...)

The last case clause handles any other message instance, thereby functioning as the default case.───最后一個case處理所有其它任何類型的消息實例,作用和default(默認)case一樣。

Why was it unnecessary to include a break statement at the end of each case clause in the monthName method presented in the chapter?───為什么本章中的monthName這個方法里的每個分支,在結尾處不需要包含break語句?

Hence, this case clause will match any message of any type.───所以,這個case塊會匹配任何類型的消息。

Pattern matching is eager; we have to put this case clause at the end, so it doesn't consume the messages we are expecting!───模式匹配是頭饑餓的怪獸,我們必須把這個case塊放在最后,這樣它才不會把我們需要的消息也都吃掉!

You can use multiple expressions or ranges in each Case clause.───可以在每個Case子句中使用多個表達式或范圍。

英語使用場景

Pattern matching is eager; we have to put this case clause at the end, so it doesn't consume the messages we are expecting!

Hence, this case clause will match any message of any type.

The last case clause handles any other message instance, thereby functioning as the default case.

Why was it unnecessary to include a break statement at the end of each case clause in the monthName method presented in the chapter?

Here the enumerated value is passed into the switch statement (remember, getGrade() returns an instance of Grade) and each case clause deals with a specific value.

The cons include the most tables and outer joins among all strategies and slightly more complex SQL (look at the long CASE clause for Hibernate's dynamic discriminator).

We can then use those values on the right-hand side of the case clause, as we have in the above example.

Finally, when designing pattern matching statements, be wary of relying on a default case clause.