JJ如果是有結構性的type matching 我可能會選擇用ProductType,內含Type及field name checking的Custom TypePattern 雖然看起來還是比ADT不好看,不過比較直觀一點 (如果用library自動抓,感覺會有非預期的結果)05:37