DEV Community

Discussion on: Daily Challenge #135 - The Wide Mouthed Frog!

Collapse
 
nickholmesde profile image
Nick Holmes

Well, I guess in this case it's down to personal preference and style.

I think that the length of String.Equals call detracts from comprehending what the code is doing, so moving it elsewhere is achieves more than just adding a layer of indirection.

I'm also not against using match over a simple bool- I quite like the kind of tabular layout of the code.