<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">Hi, I have a proposal.</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><span style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);" class="">enum</span> Foo {</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""> <span style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);" class="">case</span> foo,bar</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">}</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><span style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);" class="">func</span> test(a:<span style="color: rgb(52, 149, 175); -webkit-text-stroke-color: rgb(52, 149, 175);" class="">Foo</span>) {</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""> // …</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">}</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">test(.bar)</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">If I use an enum only as a parameter of a function, the name of enum is redundant. </div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">so I suggest a compact version like below.</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><span style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);" class="">func</span> test(a:[<span style="color: rgb(52, 149, 175); -webkit-text-stroke-color: rgb(52, 149, 175);" class="">foo</span>|bar]) {</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""> // ...</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">}</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><span style="color: rgb(52, 149, 175); -webkit-text-stroke-color: rgb(52, 149, 175);" class="">test</span>(.bar)</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><span style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);" class="">func</span> adjustTemperature(temp:[low|<span style="color: rgb(52, 149, 175); -webkit-text-stroke-color: rgb(52, 149, 175);" class="">normal</span>|high]) {</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""> // ...</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">}</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">adjustTemperature(.high)</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">I think this is very useful.</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">What do you think?</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class="">————————————————————————————</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">I’ve added an explanation.</div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><b class="">Benefits </b></div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><b class=""><br class=""></b></div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><b class=""><br class="">
Anonymous enums let you see all enum options at a glance.</b></div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><b class=""><br class=""></b></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><span style="color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(4, 51, 255);" class="">func</span> adjustTemperature(temp:[low|<span style="color: rgb(52, 149, 175); -webkit-text-stroke-color: rgb(52, 149, 175);" class="">normal</span>|high]) { … }</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">In case of normal enums, callers should check inside of the enum interface.</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><b class="">Anonymous enums encourage switch-case coding style.</b></div><div style="margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class=""><div style="-webkit-text-stroke-width: initial; margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF;" class=""><br class=""></div></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class="">// Bool variables lead to use if-else clauses.</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">var switchIsOn : Bool = true</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">if switchIsOn {</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> //</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> // ...</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> //</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">} else {</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> // </div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> // ...</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> //</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">}</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class="">// Anonymouse enums lead to use switch-case clauses.</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">var switchState: [on|off] = .on</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">switch(switchState) {</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">case .on :</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> //</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> // ...</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> //</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">case .off :</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> //</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> // ...</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class=""> //</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(83, 27, 147); -webkit-text-stroke-color: rgb(83, 27, 147); -webkit-text-stroke-width: initial; font-size: 17px;" class="">}</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; font-size: 17px;" class="">// i think the switch-case is a much better option for readability because you can label each cases. If your code is very long and uses many nested if-clauses, it makes huge differences. </div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><div style="color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; margin: 0px; line-height: normal; font-family: NanumBarunGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); font-size: 18px;" class=""><div style="-webkit-text-stroke-width: initial; margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF;" class=""><br class=""></div><div style="-webkit-text-stroke-width: initial; margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF;" class="">Generally, you don’t use anonymous enums as an alternative of normal enums.</div></div><div style="color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); font-size: 18px;" class="">I think enum is a structure but, anonymous enum is just a flag variable type. </div><div style="color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); font-size: 18px;" class=""><br class=""></div></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 18px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal;" class=""><b class=""><font face="NanumGothicOTF" size="4" class=""><span style="-webkit-text-stroke-width: initial;" class="">You can make an anonymouse enum variable without thinking that you are making a new structure and increasing complexity.</span></font></b></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">Therefore, anonymous enums can replace bool flags easily without a mental barrier.</div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: Consolas; color: rgb(0, 143, 0); -webkit-text-stroke-color: rgb(0, 143, 0); -webkit-text-stroke-width: initial; min-height: 11px; font-size: 17px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 36px; line-height: normal; font-family: NanumGothicOTF; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial; font-size: 18px;" class="">“Small differences make big changes”</div><div class=""><br class=""></div></body></html>