Re:The Curious Case of Swift's Adoption of Smalltalk Keyword...
by codetrotter on Sunday June 14, 2020 @11:09AM
(#23518209)
As someone who kind of jumped into Swift coming from other languages, I still find this kind of stuff confusing.
Is there a good intro to Swift that goes through only what is unique/peculiar about Swift and explains that in a good way to someone that already knows how to program?
Re:The Curious Case of Swift's Adoption of Smalltalk Keyword...
by bluk on Sunday June 14, 2020 @11:56AM
(#23518674)
I don't know if you tried reading The Swift Programming Language book ( https://docs.swift.org/swift-book/LanguageGuide/TheBasics.ht... ). It's a fairly quick read and has brief explanations with simple examples. You can skip some sections if you have prior programming experience, but if you're confused about Swift's function arguments, you may want to skim even the basics since a few things like control flow (e.g. the switch statement) are unique compared to C/C++/Java/C#.
In practice the order and identity of the arguments is quite clear in Swift.