在编写扩展函数时,应谨慎处理根据实参类型进行的方法重载。
Be cautious about method overloading based on argument type when you write extension functions.
而在编写时,通常只要使用简单的内置语言函数就可以来编写文本文件,并生成合适的文本。
When writing, it is usually sufficient to use simple built-in language functionality to write text files, and then generate the appropriate text yourself.
然而,在使用Pyrex编写特殊的数值函数时,另外一个需要考虑的选项是是否可以使用NumericalPython作为工具。
Another option to think about, however, in writing specialized numeric functions using Pyrex is whether Numerical Python might be a suitable tool for your work.
在编写递归函数时,命名let能够相当程度地减少键盘输入以及出现错误的数量。
The named let cuts down considerably on the amount of typing and mistakes made when writing recursive functions.
Guru转过身去,边走边说道:“呃,关键问题是,如果一个类里面有多个域,编写这个类的比较函数时要保持警惕。”
The Guru turned and continued as she walked away, "The, er, key, my apprentice, is to keep your wits about you when writing comparison functions that deal with multiple fields."
开始时我尝试使用正则表达式和index函数来编写Algorithm:InversionList。
At first, I tried to write Algorithm: : InversionList using regular expressions and the index function.
但是当您需要这个功能时,使用充分测试过的内置函数要比编写您自己的特制的转换器和格式化工具要稳妥得多。
But when you need it, it is much more robust to have well-tested built-in functions than to write your own ad-hoc converters and formatters.
不幸的是,一旦您开始编写通用的断言来描述自己希望在某个特定的函数体中处理的值时,就很容易创建一些模糊的条件。
Unfortunately, once you start writing general predicates describing the values you would like to handle within a particular function body, it becomes easy to create ambiguous conditions.
在编写代码时,如果能够提供函数的文档,会很有帮助。
When writing your PHP code, it is helpful to provide documentation of the functions.
相反,编写一个函数,当调用它时,返回生成器。
Instead, one writes a function that, when called, returns a generator.
在编写php时,这个函数是一个简单但很有帮助的调试工具。
This function is a rudimentary, yet helpful, debugging tool when working with PHP.
在编写代码时,就要考虑到以可控制的方式作为单独的单元测试每个函数。
When you write code, you build it with the idea that each function will be tested as a stand-alone unit in a controlled way.
你可以在名为Initialize的重载函数中编写代码,从而在载入你的包时与VisualStudio交互。
The override function named Initialize is where you can put code to interact with Visual Studio when your package is loaded.
在使用jQuery时,必须编写一个简短的函数来模拟该函数(参见清单16)。
You have to simulate this with a short function when using jQuery (see Listing 16).
说明:VB使用API编程时可用的模块,里面有些函数是自定义的,可自己思考并编写修改内存。
VB programming available when using the API module, which some functions are customizable, you can modify their thinking and write memory.
当要编写规则处理多个相似的设备时,udev可以使用类似C语言的printf函数中的字符串替换操作符。
When writing rules which will potentially handle multiple similar devices, udev's printf-like string substitution operators are very useful.
这样,测试脚本编写者在处理这里函数时,就可以把它们视为测试工具的编程语言的基本命令。
The test script writers treat these functions as if they were basic commands of the test tool's programming language.
而当你重新编译或重新链接时,任何一个用该函数编写的脚本都能自动修改。
Any script that was written using this function changes automatically when you recompile or relink.
使用函数方法时,编写可采用源文档并生成具有所需形状的全新结果文档的转换。
When using the functional approach, you write transformations that take the source documents and generate completely new result documents with the desired shape.
使用函数方法时,编写可采用源文档并生成具有所需形状的全新结果文档的转换。
When using the functional approach, you write transformations that take the source documents and generate completely new result documents with the desired shape.
应用推荐