I would have preferred Rust, a language created by Mozilla instead of one with ties to Apple, but I’m not a dev so I can’t really judge. What are your thoughts?

  • mryessir@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Barrier to contribute in Swift is wwwaaaaayyyy lower then Rust.

    We once ported and Swift App to Kotlin by copy+pasting. It was one day of work.

    Rust - imo - is overhyped. It has its niches. But to me it is not the swiss army knife. Swift has better expressiveness then Rust.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      It isn’t, if you’re already familiar with Rust. That’s all I’m saying. Swift usage is largely isolated to Apple’s ecosystem, which doesn’t have a ton of overlap with the open-source ecosystem.

      And I actually disagree that Rust is overhyped, because it can be used for creating libraries which can be called from virtually any other language, like you can with C and C++. Which means you’re not locked into the Rust/Apple/whatever ecosystem, but instead could be coding the next SQLite without needing to be fluent in footgun.

      From what I can tell, this would theoretically be possible in Swift, but hasn’t been implemented: https://forums.swift.org/t/formalizing-cdecl/40677

      But even if Rust was the most overhyped garbage, it would still be garbage that people are familiar with. ¯\_(ツ)_/¯