rm
04/23/2016, 4:38 PMelse
in the when
, because i want the compilation error that would result when i add a new case to T
rm
04/23/2016, 4:38 PMuhe
04/23/2016, 4:39 PMuhe
04/23/2016, 4:39 PMrm
04/23/2016, 4:39 PMrm
04/23/2016, 4:39 PMIf many cases should be handled in the same way, the branch conditions may be combined with a comma
uhe
04/23/2016, 4:39 PMrm
04/23/2016, 4:40 PMuhe
04/23/2016, 4:41 PMval (string, int) = foo()
bar(string, int) // works
bar(foo()) // pair is not decomposed
uhe
04/23/2016, 4:41 PMuhe
04/23/2016, 5:20 PMdean
04/23/2016, 6:06 PMkirillrakhman
04/23/2016, 6:10 PMjw
04/23/2016, 6:11 PMbar(*foo())
uhe
04/23/2016, 6:12 PMuhe
04/23/2016, 6:12 PMmplatvoet
04/23/2016, 6:25 PMjw
04/23/2016, 6:30 PMjw
04/23/2016, 6:31 PMmplatvoet
04/23/2016, 6:34 PMuhe
04/23/2016, 6:35 PMuhe
04/23/2016, 6:35 PMjw
04/23/2016, 6:36 PMmplatvoet
04/23/2016, 6:37 PMjw
04/23/2016, 6:37 PMmplatvoet
04/23/2016, 6:37 PMjw
04/23/2016, 6:37 PMmplatvoet
04/23/2016, 6:37 PMjw
04/23/2016, 6:37 PMmplatvoet
04/23/2016, 6:37 PM