You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We define the "naive" implementations as those which a developer with enough experience in a given language would implement as a baseline "good enough" solution where correctness is more important than performance.
Yet the Swift Language Guide, which relatively speaking a developer with any experience will spend some time glancing at clearly states:
The additional capabilities that classes support come at the cost of increased complexity. As a general guideline, prefer structures because they’re easier to reason about, and use classes when they’re appropriate or necessary. In practice, this means most of the custom data types you define will be structures and enumerations.
The README states
Yet the Swift Language Guide, which relatively speaking a developer with any experience will spend some time glancing at clearly states:
https://docs.swift.org/swift-book/LanguageGuide/ClassesAndStructures.html
Yet the impl uses
classes
exclusively contradicting the above two notionscompletely-unscientific-benchmarks/swift/Sources/naive/main.swift
Line 4 in 86c455f
The text was updated successfully, but these errors were encountered: