We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rt, Lite 不支持这种代码:
def a @fucking_text = 'deep' return ->() { "It's fucking #{@fucking_text} " } end puts a().call
可是,其实 Ruby 里的块是在创建时打包当前本地变量的,所以你可以让块携带着本地变量的引用跨越词法作用域的大门, Lite 里这不可能。
def fucking_deep @fucking_text = 'deep' return { "It's fucking $@fucking_text" } end puts funcking_deep().call()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
rt, Lite 不支持这种代码:
可是,其实 Ruby 里的块是在创建时打包当前本地变量的,所以你可以让块携带着本地变量的引用跨越词法作用域的大门, Lite 里这不可能。
The text was updated successfully, but these errors were encountered: