A number of blogs and tutorials have different indentation when they implement the case statement. Each of them has a different indentation with respect to the βwhenβ lines. Is there any best practice for indenting when using a case loop?
The consensus is when indentation is at the same level as case .
when
case
case sym when :foo then ... when :bar then ... else ... end
I think this is well known, and have not seen any reliable sources that state otherwise.
So I used it. "What happens when" when "should be on the next line and indented.
case something when 'a' what happens when 'a' when 'b' what happens when 'b' when 'c' what happens when 'c' end
Source: https://habr.com/ru/post/949671/More articles:User Interface Lock - c #Php computer learning library? - phpstrange saying c - cStreamlining VCL thread wrapper code - multithreadingHTML5 tags - html5Using JSoup to clean Google results - javaIntelliJ does not find native libraries for OpenCV when adding jar as a dependency for a Play project - javaHow do you link your native library to a jar in IntelliJ? - javaHow to set the culture of the entire ValueProviderResult used when binding the model to a given value? - asp.net-mvc-3Discrete Color Chart Color nvd3.js - nvd3.jsAll Articles