2 ms·
That is correct, and I should have made that clearer. However, a lot of it’s features are implemented in Swift (via custom operators, overloading etc) in additi
by neeeeees 7y ago
That is correct, and I should have made that clearer. However, a lot of it’s features are implemented in Swift (via custom operators, overloading etc) in addition to compiler intrinsics.
The point I had in mind was that a language like Swift may allow for both power and DSL-like expressiveness without requiring learning an entirely new language. In fact, standard arrays are implemented in Swift code (https://github.com/apple/swift/blob/master/stdlib/public/core/Array.swift https://github.com/apple/swift/blob/master/stdlib/public/cor...) yet feel closer to say a Python list than a Java ArrayList from the user’s perspective.