in terms of和in term of的区别

今天在看《The Swift Programming Language (Swift 3)》的访问控制章节,其中有一句话“Access levels in Swift follow an overall guiding principle: No entity can be defined in terms of another entity that has a lower (more restrictive) access level.” Excerpt From: Apple Inc. “The Swift Programming Language (Swift 3).” iBooks. 想了半天,感觉还是不是很好理解。如何翻译才好呢?

首先需要知道的是,in terms of和in term of是不同的,区别如下:

  • in terms of:按照(依据,用...词句,用...来,通过)
    It is difficult to express it in terms of science.
    要用科学的字眼来表达它是很困难的。
  • in term of:就……而言
    In term of money, he's quite rich, but not in term of happiness.
    就钱来说他很富有,但就幸福来说就不然了。

然后,结合文档里给出了两个例子:

  • A public variable cannot be defined as having an internal, file-private, or private type, because the type might not be available everywhere that the public variable is used.
  • A function cannot have a higher access level than its parameter types and return type, because the function could be used in situations where its constituent types are not available to the surrounding code.

我觉得 No entity can be defined in terms of another entity that has a lower (more restrictive) access level.可以这样翻译:没有实体可以用较低访问级别的实体定义。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,535评论 5 6
  • 啃剩下的青春就留给苍蝇 本应该无心拒绝别说毕竟 让断翅风筝暂替把柄 给每口母乳注入酒精 希望惩罚 不用商量着决定 ...
    太空鬼阅读 367评论 2 1
  • 坐标北京,室友搬家的时候翻出来很多玩偶,我好喜欢这个蛋蛋君,软磨硬泡想把它给贪下来,室友很大度,给给给~这个小玩具...
    金波子阅读 756评论 1 1
  • “天下三分明月夜,二分无赖是扬州”“二十四桥明月夜,玉人何处教吹箫”……这样的诗句,总让人胸中风花雪月诗意激荡,对...
    一玄子阅读 468评论 1 2
  • 上学的时候,每年都会信誓旦旦滴写上一年的新计划,无外是好好学习啊,学英语啊画画啊减肥啊,旅行啊什么的,当然也可以想...
    野猫C阅读 97评论 0 0