3 ms·
As is tradition, I'm going to take the discussion one level up and talk about the language as a whole, although my issue is related to this syntactical change.
by saagarjha 6y ago
As is tradition, I'm going to take the discussion one level up and talk about the language as a whole, although my issue is related to this syntactical change. The problem Swift has right now is that the review process is marred by huge conflicts-of-interests. The people reviewing proposals are very closely affiliated with, or sometimes the same people, that proposed it and want it implemented. And that's not to say they aren't smart, reasonable people; quite the opposite: it's just that they have their own interests when they're adding features to the language, and they ignore the community when doing so.
When initial SwiftUI changes came through, they were "proposed" by Apple engineers even though they already shipped in Xcode. Sure, they got a bit of feedback and change, but everyone largely knew they were going in regardless and they did. When callAsFunction came in (which I actually think is a useful feature, just spelled horribly) it was obvious that it was being pushed heavily by the Swift for TensorFlow people. And who reviewed it? Chris Lattner, who approved it even though nobody really liked the name at all. And with this case we see a fairly dubious benefit being pushed forward by the team at Apple, and everyone knows it's going to be for some sort of SwiftUI DSL thing, except they can't really tell us what it is and currently it provides a new the way to call a bunch of functions that is unergonomic and extremely special-purposed.
When people say that Swift is adding "useless features" they don't really think that Swift should stop evolving; it's just that they're frustrated that stupid things like these keep getting added and that the Swift Evolution community as a whole is unable to stop them from being merged in or modified substantially.
- wool_gather 6y agoThe multiple trailing closures case is also frustrating because they said "we're totally open to future evolution of this"...and then ruled out every proposed alternative with the "Principles" post.
- deleted 6y ago[deleted]
- alexashka 6y agoI'd take it up a few more levels and ask about the elephant in the room: in what significant way is this language better than C#? This outrage over closures reminds me of tabs vs spaces - it's one level above utter lunacy. Who gives a shit what the syntax is? Didn't we use Objective-C not long ago? Programming languages are a tool for me, not an artistic expression of text on a screen. What has this language allowed me to build that I couldn't in Objective-C? Let's use empirical evidence - why do we have electron apps for something as basic as a chat app (Slack) instead of a native app? We're going backwards in software tools as far as I can tell. Everything is more complicated and fragmented and Swift is a part of this mess, not a solution. Sorry, carry on with expressing opinions about syntax and pointing out that those who pay for the juke box, get to select the songs and are hypocrites when they pretend otherwise and press 'Billie Jean' when most people wanted 'Thriller'.
- musicale 6y ago> in what significant way is this language better than C#? - direct compilation to native code with static analysis and optimization - automatic reference counting (more predictable/consistent performance vs. garbage collection) - good support for native iOS and macOS app development - ranges (But on an unrelated note, I have to say it's disappointing to me to find any language in 2020 (Java...) that doesn't support named and default parameters.)
- liversage 6y agoRanges was added to C# 8.0.
- alexashka 6y agoQuestion: do you know who Guy Steele is? Follow up question: do you think Guy Stele thinks ARC is significantly better than C#'s garbage collection? Last question: do you think you know better than Guy Stele? Feel free to research to find the answers to these questions - there will not be any ambiguity. Feel free to apply the same formula to the rest of your points and feel free to swap Guy Stele for any other well known and respected compiler expert. This is an argument from authority but I've lately been feeling that arguments from authority are actually more powerful for lay-people who don't know how much they don't know - they at least tend to respect well established authority figures. The points about ranges and platform support are such facepalm material I'll leave it as an exercise for you to figure out why.
- msie 6y agoI'm confused by your post. You first say the syntax doesn't matter, languages are just a tool, yet you say that Swift is part of the problem because everything is more complicated. The increasingly complex syntax of Swift IS the problem.
- alexashka 6y agoLet me use an analogy: We have furniture and some furniture uses screws to hold it together. A furniture manufacturer decides to create a new line of furniture and introduces a new type of screw that requires you use a new screwdriver. This screwdriver and screws are magical, they can magically alter themselves over time in small ways - they can change color, the handle can become rubberized or change texture, etc. There's a whole group of people working on deciding how the screwdriver and screws magically alter themselves and which rubber material is best, which color is most pleasing, etc. They're so wrapped up in it, they never stop to ask, wait, why the fuck did this new line of furniture even require new screws and screwdrivers? When I compare the old line of furniture and the new, I can't tell the difference! It's the same shitty furniture! We have multiple furniture manufacturers, why didn't we just agree to use the same screws and screwdrivers for all of them? I don't get it - the people who are so passionate about screwdriver handles of one single manufacturer, to me, are a bunch of lunatics. Does that help?
- ksec 6y agoIt is funny because I thought Swift for TensorFlow is now largely abandoned. I guess this is generally the reason why some have little faith in Swift and generally prefer Objective-C. I still remember 15+ years ago everyone thought Objective-C was horrible. And Java, C# syntax was the future. Somehow once the alternative actually arrived, OC suddenly became not so bad.
- blackrock 6y agoSun Microsystems cursed the programming world with Java. And its hideous object oriented model. I never thought Java would die. Then Oracle saved us all, and bought Sun. And they proceeded to burn down bridges, and destroy all the goodwill that Sun built up with Java. Now, I can finally see it. The Sun is finally going to set on Java. The Java is dead! Long live the Java!