Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2 又几个关键词 #7

Merged
merged 1 commit into from
Oct 25, 2017
Merged

Conversation

nobodxbodon
Copy link
Member

善后 - 这里给出的意思是"处理事务的后续问题,妥善处理事情发生后的遗留问题" 感觉蛮接近Finally的用途
导入 - 感觉Import和Export的作用是对应而且相反的, 那么中文最好也是对应而且相反?
InstanceOf - 如果它也可以用于接口, 比如某某对象 instanceOf 某某接口, 那么为类好像就有点不全面? 不过身为个人感觉有点太拟人化, 但暂时没有想到其他的...

"位于": SyntaxKind.InKeyword,
"为类": SyntaxKind.InstanceOfKeyword,
"身为": SyntaxKind.InstanceOfKeyword,
"接口": SyntaxKind.InterfaceKeyword,

"是为": SyntaxKind.IsKeyword,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

顺便请教, is和instanceof有什么区别? 看到一些实例, 比如这里, 但是没有找到对它的详细说明文档.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 为类 的 实质作用是 确定 实例 对象的构造函数是与某 类是一样的

Copy link
Collaborator

@htwx htwx Oct 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 is 是个 布尔型的 表达式 确认 "实例 是 什么类型" 这个身为 也不错

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

所以区别是, 如果A instanceof B, 那么A is B; 但是如果A is B, 不一定A instanceof B?

@htwx
Copy link
Collaborator

htwx commented Oct 25, 2017

对 导入 对应 导出 不错

@htwx htwx merged commit fb7c9ec into program-in-chinese:master Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants