Not if I read it correctly, it could be easily reversed upon some triggers such as code merge.
-
-
Replying to @itraor @propensive
you mean converting it to the older syntax? I suspect it won’t take long to find ambiguous examples when mixing semicolon inferences and significant indentation
1 reply 0 retweets 1 like -
Replying to @gabro27 @propensive
Yes, I read the whole thing and the example. It's marked as an exploration that would be stupid to dismiss without trying out, so not likely to appear before at least two release cycles, if ever.
1 reply 0 retweets 2 likes -
Replying to @itraor @propensive
I understand, but notice that losing tooling support is not “personal taste”, it’s a thing that will simply happen when the syntax changes so drastically. Is it really worth it to rewrite a formatter from scratch for trying out that syntax? I don’t think so.
1 reply 0 retweets 3 likes -
Wouldn't a formatter be redundant? ;)
2 replies 0 retweets 1 like -
Replying to @propensive @gabro27
Exactly what I thought, if spacing is significant then by definition code is broken when spacing isn't right. This is really about being opinionated about style by design
1 reply 0 retweets 0 likes -
Replying to @itraor @propensive
That’s why python doesn’t have a formatter. Oh wait!
1 reply 0 retweets 1 like -
Replying to @gabro27 @propensive
Formatter would get a new job to do. It may well come to nothing. But then someone could fork the idea, spend a weekend tinkering and change everybody's way of thinking for good. Who knows.
1 reply 0 retweets 0 likes -
Replying to @itraor @propensive
I lost you here. Formatter will have roughly the same job, and that’s the same as they do in Python (see 'black' for example). Writing a formatter from scratch is not a weekend project, unless you have a lot of weekends :)
2 replies 0 retweets 2 likes -
Replying to @gabro27 @propensive
Good point! Indeed I do respect the efforts involved. The word weekend wasn't correct in this context.
1 reply 0 retweets 1 like
It would be interesting to know how long @odersky spent on modifying Scala to support this. It might be *some* indication of how long it would take to modify other tools, without the luxury of knowing the syntax inside out, or being able to choose the design on a whim.
-
-
I scanned the PR diff, thought the reverse steps were neat. I actually didn't expect this to be controversial. But I'm too lazy to be writing tools, so I just keep watching the space.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.