(no title)
majorchord | 10 days ago
For this reason (coming from C++) I wished Swift were more popular because that syntax is much more familiar/friendly to me, while also having better memory safety and quality of life improvements that I like.
majorchord | 10 days ago
For this reason (coming from C++) I wished Swift were more popular because that syntax is much more familiar/friendly to me, while also having better memory safety and quality of life improvements that I like.
rtfeldman|10 days ago
Personally, I bucket C++ and Rust and Swift under "basically the same syntax." When I think about major syntax differences, I'm thinking about things like Python's significant indentation, Ruby's `do` and `end` instead of curly braces, Haskell's whitespace-based function calls, Lisp's paren placement, APL's symbols, etc.
Before today I would have assumed that anyone who was fine with C++ or Rust or Swift syntax would be fine with the other two, but TIL this point exists in the preference space!
zahlman|10 days ago
... Which is really all to say: different people are focused on different details, at different levels.
g947o|10 days ago
O-stevns|10 days ago
It's particularly terrible in SwiftUI context nowadays but you can also make it chuck on something as simple as a .map(...)
cfiggers|10 days ago
I understand exactly how shallow that makes me sound, and I'm not about to try and defend myself.
O-stevns|10 days ago
For this reason I was able to get into Odin as opposed to Zig because of some similarities with Swift Syntax as well how easy it is to parse.
The less I need to rewire my brain to use xyz language, the greater the chance of me getting into it.
If my life depended on it, I could get over such a shallow reason to dismiss a language but fortunately it doesn't and that's why I write Swift rather than Rust.
tialaramex|10 days ago
If you do like Swift you might want to just bite the bullet and embrace the Apple ecosystem. That would be my recommendation I think.
rrgok|10 days ago
Strangely enough I find Lisp's parentheses much more attractive.