• 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.

    另外,一个人们常碰到的相关问题,就是副作用,你调用一个函数它返回一个值,但是故意或者无意的,它可能会修改一个实参的值。

    麻省理工公开课 - 计算机科学及编程导论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定