When you call a function, what actually happens is that function gets its own chunk of memory that's identical in size to the data type that it expects.
当你调用一个函数,实际上发生的是,函数得到了自己的内存块,相同的类型,是占有一样大小的内存的。
All right. So hopefully we're pretty comfortable naming any type of wave function using the chemist terminology.
好了,希望我们都可以,接受这种,用化学术语来命名任何类型的波函数了。
We want to do the same thing, but with our data types.
我们想要创建数据类型和函数,或者我们会叫他们方法。
And just as with variables, you should use some common sense, some style here, and the function's name should X Y communicate what it does, calling it X or Y or Z is generally not all that helpful.
就像变量,你使用一些常识,一些类型,和函数名需要,传达它所做的事情,把它叫做,或者Z通常是没有什么用处的。
应用推荐