语法糖(Syntactic sugar),也译为糖衣语法,是由英国计算机科学家彼得·约翰·兰达(Peter J. Landin)发明的一个术语,指计算机语言中添加的某种语法,这种语法对语言的功能并没有影响,但是更方便程序员使用。通常来说使用语法糖能够增加程序的可读性,从而减少程序代码出错的机会。
我在想,哇,更语法糖。
供应者方式是核心方式,所有其它方式都是它的语法糖。
The Provider recipe is the core recipe type and all the other ones are just syntactic sugar on it.
在这种高级的情况下,根据全部问题的复杂性,语言语法糖就可能不再重要。
In such advanced cases, language syntax sugar is likely to be less important, in terms of the total problem complexity.
应用推荐