Ed Saleh

Results 19 comments of Ed Saleh

https://github.com/tc39/proposal-do-expressions/issues/74

Hi Scot, Thank you for your reply. My proposal doesn't need to worry about implicit return. I'm very against it that I had my proposal for rust lint approved to...

Implicit return if it would come to JavaScript, should be generally added to all functions in JavaScript, not just one statement. Using regular functions to implement `do expression` would allow...

I think my proposal could be used for both *do* statement and *match* statement, using the form with a parameter `{value}=>{*if/switch(value.)...}`

Hi Jordan, Thank you for reply. My method is able to get the sorounding state block since it's an arrow function, but it won't be able to use `return` or...

Yes, it it's possible to do my method in JavaScript now, but I'm proposing a shortcut.

You can always return a state from my proposed method that would allow controling yeild/return of outer state function though.

Thank you very much for replies. The parameters work by mapping the single object fields value of my proposed method to its inner states. It allows only a one single...

Pipe and Chaining Example: Consecutive chains inherit the single parameter of single field object of parent chain, each assigning return value to that single field object property and passing that...

We can of course discuss the syntax, my proposal has 3 suggestions: `=>`, `->`, `do`. The reason I prefer `=>` is because my method is actually based on anonymous method,...