Having proposed the syntax, and used it for a very short while, it's actually super logical. And it's *more* visually consistent, isn't it?
-
This Tweet is unavailable.
-
-
Replying to @propensive @vascorsd
For me, it's not that it's illogical, I just find that it adds to my mental parsing load considerably. The same elements, reordered - it requires careful reading which is hard to skim at a glance
1 reply 0 retweets 1 like -
Replying to @KenScambler @vascorsd
You say "reordered", I say "in exactly the same order"... ;)
1 reply 0 retweets 0 likes -
Replying to @propensive @vascorsd
As an unnecessary visual metaphor perhaps, but instead of "def name args" it's "def (name args) OR (args name args)" which is unusual & novel syntax for a boring feature that every other language has boring syntax for.
1 reply 1 retweet 3 likes -
Replying to @KenScambler @vascorsd
I think I'm missing something…the location of the def determines where it is defined, and the syntax between the def and the `=` just resembles the callsite. Any other order would involve mental reordering between definition site and callsite, or defining elsewhere, wouldn't it?
1 reply 0 retweets 1 like -
Replying to @propensive @vascorsd
To me, anyway, part of what makes method signatures easy to read is the expected order - def then name then types then args then return type. Very easy to scan. The other thing - why spend novelty dollars on this, when boring obvious syntax is already widely known?
2 replies 1 retweet 2 likes -
Replying to @KenScambler @vascorsd
Because the boring syntax requires reordering... def foo(a: T)(b: T2)(c: T3): R looks like http://a.foo (b)(c) at the callsite. I don't really understand why you *wouldn't* choose to write things in the same order at the definition site as the callsite...
1 reply 0 retweets 3 likes -
Replying to @propensive @vascorsd
I don't have anything else to say, but thank you very much for taking the time to explain the rationale.
1 reply 0 retweets 2 likes -
Replying to @KenScambler @vascorsd
@dibblego might have us playing table tennis soon... ;)2 replies 0 retweets 1 like
Anyway, I have to teach this new syntax in a couple of weeks, so it's useful for me to get exposure to other people's responses to seeing it! :)
-
-
Replying to @propensive @KenScambler and
Being familiar with extension methods but not following dotty development closely, I have to say that it does make sense to me, I’m also not familiar with C# syntax which seem ambiguous and I wonder about the meaning of “this” and if it goes before each parameter or just the 1st
1 reply 0 retweets 1 like -
Replying to @mpmlopes @propensive and
That does suggest that my reasoning is more subjective and partial than I'd hoped
2 replies 0 retweets 1 like - Show replies
New conversation -
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.