Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				 Daniil1028yOh cool. Daniil1028yOh cool.
 
 I have similar parts in my code and thought was bad.
 
 Good to see others do it to :D
 (in my case I often write logs in that case "we should have ended up here.."
- 
				
				 Daniil1028y@filthyranter Daniil1028y@filthyranter
 It's a pattern of "good programming" to include the default case.
 This makes it clear that
 a) there could be a different case that handled above.
 B) the programmer is aware of this task and c) may have taken proper action
 
 So for general: increase readability, decrease misunderstanding and error rate. Create more 'fool proof systems' (at least in my opinion, you can Ofc say 'more code decreases the readability - it's a guideline not a rule)
- 
				
				 Daniil1028y@filthyranter Daniil1028y@filthyranter
 In my opinion would be the same or equivalent.
 
 Though " default " can be checked by tools your comment not (or not that easy).




So was going through the Linux kernel
undefined