Nested case statements in SML

后端 未结 3 888
深忆病人
深忆病人 2021-02-19 00:03

This is more of a stylistic question than anything else. Given the following piece of code:

case e1 of                    (* datatype type_of_e1  = p1 | p2 *)
           


        
3条回答
  •  逝去的感伤
    2021-02-19 00:35

    Plain and short answer: no. But what's wrong with parentheses?

    (Of course, you can also bracket in other ways, e.g. with a 'let', or by factoring into auxiliary functions, but parentheses are the canonical solution.)

提交回复
热议问题