I am surprised this syntax has been repeatedly requested and rejected since 7 years ago. Write assigning code maybe is not a big problem to developers, but cause Ruby has Struct to solve the assigning problem, so at least it is a prob...jjyr (Jinyang Jiang)
Motivation: Introduce a new syntax for convenient setup instance variables for objects. The problem: Currently, setup instance variables in Ruby is too verbose. Basically, we need to write the meaningless assigning code again ...jjyr (Jinyang Jiang)
Propose new syntax for https://bugs.ruby-lang.org/issues/14982#note-5 (The core idea is not changing) ``` ruby # add 'isolate' keyword to describe an isolated binding scope isolate # ..... # can't access unimported names from ...jjyr (Jinyang Jiang)
I can imagine how hard to implement the "requiring into isolated binding" correct in VM. If we want to maintain the compatible we need to maintain the reference of the name cross different require/import. Think of a situation: `...jjyr (Jinyang Jiang)
shyouhei (Shyouhei Urabe) wrote: > I like this idea in general. I too want to have "requiring into isolated Binding". > ... Totally agreed!jjyr (Jinyang Jiang)
I believe namespace can reduce the complexity of organizing codes in large projects. Recently I write rust code in a large project. Our code base is dependent on other several complex projects. With rust `use` syntax(https://doc.rust...jjyr (Jinyang Jiang)
Updated: https://bugs.ruby-lang.org/issues/14982#note-5 ## Why Ruby has evaluation all class/module names in top-level context(aka TOPLEVEL_BINDING). As a user we basically hard to know how many names in the current context, ...jjyr (Jinyang Jiang)
Pass a new arg to create GreenThread maybe introduce more problems. For example: ``` g_thr = Thread.create(green_thread: true) g_thr.is_a?(Thread) # => false or ture? ``` If Thread.create return a non Thread object, it's weird....jjyr (Jinyang Jiang)
Excited to see this awesome feature! I'm implemented fiber-auto-schedule at ruby userland([light](https://github.com/socketry/lightio)) few month ago(using monkey patch). Due to ruby complexity IO API (like: `getc`, `getbyte`, `put,c`, `...jjyr (Jinyang Jiang)