infinilabs / analysis-pinyin

🛵 This Pinyin Analysis plugin is used to do conversion between Chinese characters and Pinyin.
Apache License 2.0
2.94k stars 547 forks source link

Use && to support short circuiting #296

Closed sweetStreet closed 8 months ago

sweetStreet commented 8 months ago

& and && have the same semantics when comparing boolean values. But && can perform a short-circuit logical AND operation, which makes more sense.