[HN Gopher] What's New in Swift 5.9?
___________________________________________________________________
What's New in Swift 5.9?
Author : Someone
Score : 18 points
Date : 2023-06-06 17:50 UTC (5 hours ago)
(HTM) web link (www.hackingwithswift.com)
(TXT) w3m dump (www.hackingwithswift.com)
| bsaul wrote:
| Fulltime swift developer here : am i the only one that worries
| swift is evolving way too fast and adding way too many features,
| that make the language so bloated it's going to reach C++ level
| of complexity in less than half the time ?
| Someone wrote:
| Because it avoided some of the bad choices made in programming
| languages in the past half century I don't think it will reach
| C++ complexity. For example, it doesn't have the C
| preprocessor, (unless I missed some developments) avoids some
| of the complexity of C++ public/protected/private inheritance,
| and makes it hard or even impossible to make some errors that
| are way too easy to make in C++, such as not following
| https://en.cppreference.com/w/cpp/language/rule_of_three.
|
| They sure seem to be trying, though.
|
| It does add such things as async and ownership, and those
| complicate the language, but IMO not programming in the
| language. It only makes issues explicit that C++ programmers
| also have to think about, but cannot clearly document in code.
|
| I also think it's starting to be two languages: the relatively
| simple high-level one that it started out as that has Unicode
| strings, reference counting, copy-on-write data structures, and
| makes multi-threading magically work through GCD and a low-
| level one that has byte arrays, ownership, allows implementers
| to implement data structures the way they want and has explicit
| locks, etc.
| pjmlp wrote:
| C++ has the fame, but isn't alone in that regard.
|
| C# 12 with .NET 8 standard library, Java 21 with standard
| library, Python 3.11 with standard library, plus knowing key
| versions on their timeliness, and major third party libraries
| are just as complex.
|
| So nope, it is impossible to know everything.
|
| Even those that claim to fully understand "simple" languages
| like C, they actually master their own C compiler and are
| unaware of all variants and deviations of it.
___________________________________________________________________
(page generated 2023-06-06 23:02 UTC)