以上来源于: WordNet
The Singleton creation pattern is a common programming idiom.
单例创建模式是一个通用的编程习语。
In addition, you must use the correct programming idiom to check if the collector has reclaimed the object before using it, and if it has, you must re-create the object first.
另外,您必须使用正确的编程风格以检查收集器在使用对象之前是否已经回收了它,如果已经回收了,您首先必须重新创建该对象。
Such a feature would be a trade-off - adding complexity to the language to preserve the viability of a specific programming idiom (and an outdated - inherently serial - one at that).
这样的一种功能可算是一种取舍——增加语言的复杂性来来维护一种特定编程技法(也因此是一种过时的——内在串行化的技法)的可行性。
应用推荐