简体   繁体   English

“顶级评估”是什么意思?

[英]What does “top-level evaluation” mean?

What does "top-level evaluation" mean? “顶级评估”是什么意思?

This term was not defined in the text it was mentioned in. I do not want to tell the specific context, because I am interested only in generic explanations. 该术语未在提到的文本中定义。我不想透露具体的上下文,因为我只对通用解释感兴趣。

It might have multiple meanings depending on the context, but I think it means the evaluation of the top-level expression. 根据上下文的不同,它可能有多种含义,但我认为这意味着对顶级表达的评估。 For example, the entire body of the main function in a Haskell program, is one expression (of type IO () ) and is the top-level expression of the program, so evaluating that expression would constitute top-level evaluation. 例如,Haskell程序中main功能的整个主体是一个表达式(类型为IO () ),并且是该程序的顶级表达式,因此,对该表达式进行评估将构成顶级评估。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM