DEV Community

Discussion on: When Should I Use One Liner if...else Statements in Go?

Collapse
 
joncalhoun profile image
Jon Calhoun

You are right - this is another very common use case and you can almost always use the initialization statement since your maps shouldn't typically have names like omgThisMapHasASuperLooongNameThatIsSoAnnoyingToType 😀