If you're writing a one line function, whose sole purpose in life is addition, and, clearly, this is about addition, well, then it's, in fact, A reasonable to use a shorter symbol like A, but I do have to specify it's type.
如果你在写一个一行的函数,它唯一的目的是,做加法,显然这是关于加法的,好的,实际上,用一个短的标识符是合理的,像,但是我必须指明它的类型。
Content is a function -or let me say practical language, the purpose, in other words, of communicating facts or of communicating at all, which we associate with practical language -is a function of poetic language.
他们认为,内容即是功能,实用语言的目的,就是交流,我们总是把交流和实用语言联系,但其实它也是诗歌语言的功能。
And again, a related problem that people run into is side-effects. You call a function and it returns a value, but maybe it, on purpose or on accident, modifies one of the actual parameters.
另外,一个人们常碰到的相关问题,就是副作用,你调用一个函数它返回一个值,但是故意或者无意的,它可能会修改一个实参的值。
应用推荐