Skip to content

Commit

Permalink
语法糖一页错别字修改
Browse files Browse the repository at this point in the history
“过渡使用”改为“过度使用”
  • Loading branch information
EscapeReality846089495 committed Jan 29, 2023
1 parent 1b52a03 commit ef35dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/basis/syntactic-sugar.md
Original file line number Diff line number Diff line change
Expand Up @@ -808,4 +808,4 @@ Iterator 是工作在一个独立的线程中,并且拥有一个 mutex 锁。

前面介绍了 12 种 Java 中常用的语法糖。所谓语法糖就是提供给开发人员便于开发的一种语法而已。但是这种语法只有开发人员认识。要想被执行,需要进行解糖,即转成 JVM 认识的语法。当我们把语法糖解糖之后,你就会发现其实我们日常使用的这些方便的语法,其实都是一些其他更简单的语法构成的。

有了这些语法糖,我们在日常开发的时候可以大大提升效率,但是同时也要避免过渡使用。使用之前最好了解下原理,避免掉坑。
有了这些语法糖,我们在日常开发的时候可以大大提升效率,但是同时也要避过度使用。使用之前最好了解下原理,避免掉坑。

0 comments on commit ef35dbf

Please sign in to comment.