为什么反射被称为反射而不是自省?

编程入门 行业动态 更新时间:2024-10-19 15:41:58
本文介绍了为什么反射被称为反射而不是自省?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

反射一词的由来是什么?似乎更像是内省.为什么不叫它?

What is the origin of the term reflection? It seems more like introspection. Why isn't it called that?

自省:向内看;具体来说就是自我检查的行为或过程.

Introspection: A looking inward; specifically, the act or process of self-examination.

反射:

  • 反映的行为或反映的状态.
  • 图片;表示;对方
  • 固执于某事的思想;仔细考虑 思绪:在思考或冥想中出现的思想
  • the act of reflecting or the state of being reflected.
  • an image; representation; counterpart
  • a fixing of the thoughts on something; careful consideration
  • a thought occurring in consideration or meditation.
  • 推荐答案

    法语Wikipedia文章上有一个关于Reflection(此处)

    There is an interesting answer on the french wikipedia article for Reflection (here)

    反射可以分解为两个部分:

    Reflection can be decomposed in two parts:

    • 自省:程序可以自我检查.
    • 代祷:程序可以修改其状态/含义.

    因此,反思比内省是一个更强大"的属性.这就是为什么您说类型自省的能力,以便在运行时知道类型(并进行更改)是另一项操作:转换/广播).

    So reflection is a 'stronger' property than introspection. That's why you say type introspection for the ability to know types at runtime (and changing them is another action: conversion/casting).

    实际上我刚刚意识到第一个答案就是说^^.该抽出自己的时间了...

    actually I just realized the first answer was saying exactly that ^^. Time to unplug myself...

    更多推荐

    为什么反射被称为反射而不是自省?

    本文发布于:2023-11-09 20:49:11,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1573399.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:反射   被称为   而不是

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!