-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
Tuning soak compilation #756
Comments
Alright, I'll be the first to embarrass myself and take a stab at it. For readabilty's sake, I'm going to write synonymous coffeescript instead of JS.
|
I think michaelficarra has a very good point. Instead of unfolding soaks and always trying to get them right, why not just turn them into |
Yes, that's exactly what I was trying to get across, Stan. Thanks for wording it so well for me. |
The problem with this is unintuitivity. When
Yep, that's what it currently does (take a look at those FYI, the examples currently compile to:
|
|
What about
It was doing like that before b0e34edf. Here's the conversation that led to the commit.
|
I was hoping someone else would weigh in on this issue either in agreement or disagreement. In response to
I would say I do see the counterintuitive problem with the expression |
Propagating to upstream is more difficult to understand (and implement). You wouldn't expect It makes sense to unfold against mutating operations ( |
As of 90a13bd7, the compilations are:
|
Thanks for the match, satyr -- closing the ticket. |
As mentioned here: I'd like to hear a few more comments about the desirability of
|
@jashkenas: I don't think I'd write code like that. It makes sense, but I believe it's unnecessary and ultimately adds confusion. @satyr: I know you're going to come up with a really convincing counter-example now. |
I no longer mind Coffee removing them, but the point was they should be valid as LHS expressions. Are you removing |
I'd call it magical in a useful way. I've certainly used
as a common idiom. And I could easily see myself writing
I'd say it's an underused feature right now, but I don't see it as adding confusion. |
Lets leave |
After some struggling (#733, b0e34edf), I'm still unsure about some compilations with soak. So here's a public question:
What should these compile to?
The text was updated successfully, but these errors were encountered: