Giter VIP home page Giter VIP logo

Comments (13)

ynCode avatar ynCode commented on August 26, 2024

我来水一发

from kuitos.github.io.

kuitos avatar kuitos commented on August 26, 2024

只水不star都是耍流氓 @ynCode

from kuitos.github.io.

codezyc avatar codezyc commented on August 26, 2024

Nice Post.

from kuitos.github.io.

kuitos avatar kuitos commented on August 26, 2024

@codezyc thx

from kuitos.github.io.

tthallos avatar tthallos commented on August 26, 2024

Simple Assignment 中的第一步的 Evaluate LeftHandSideExpression 一直不太明白

let foo
foo = 'hello'

在上面这个例子中,Evaluate LeftHandSideExpression 的结果不是 undefined 吗?这样还能执行第四步的 PutValue

from kuitos.github.io.

kuitos avatar kuitos commented on August 26, 2024

@mage3k Evaluate 操作并不取值,只是拿到表达式,只有执行了 GetValue 才会取值

from kuitos.github.io.

tthallos avatar tthallos commented on August 26, 2024

@kuitos 感谢回复。最近被网上那个连续赋值问题弄的有点困惑,网上也有不少分析文章的,但是都没有从规范上讲通的。这几天一直在看规范,从赋值到属性访问到引用,总算是明白了。这篇文章在这个过程中起了很大的作用。🙏

from kuitos.github.io.

tthallos avatar tthallos commented on August 26, 2024

@kuitos 如果 Evaluate 不取值的话,Call PutValue(Result(1), Result(3)) 中的 Result(1) 是什么呢?

from kuitos.github.io.

kuitos avatar kuitos commented on August 26, 2024

你的例子里,Result(1) 就是 foo
再比如 o['a' + 'b'] 的 Evaluate 的结果就是 o['ab'],只要没有执行 GetValue, 就不会对 o['ab'] 取值

from kuitos.github.io.

tthallos avatar tthallos commented on August 26, 2024

fooo['ab'] 可以理解成字符串吧,或者是规范里一个特殊的东西?

from kuitos.github.io.

kuitos avatar kuitos commented on August 26, 2024

@mage3k 不是,你可以理解成它们的 Reference

from kuitos.github.io.

tthallos avatar tthallos commented on August 26, 2024

@kuitos 你说的 Reference 和规范里的 Reference 应该不是同一个东西吧。
如果是一个东西的话,那规范当中的 GetValue就不太好理解了。

  1. If Type(V) is not Reference, return V

如果都是是规范里的 Reference,这一步是不是没什么意义。

from kuitos.github.io.

zhangenming avatar zhangenming commented on August 26, 2024

规范现在读起来还是有点吃力
而您的最初的问题我倒是感觉很自然就应该是这样的结果
但您为什么会花费如此功夫去深究这个问题
以使我怀疑我现在到底有没有完全理解这个问题

from kuitos.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.