Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Rust vs. Swift (gist.github.com)
3 points by behnamoh on May 6, 2024 | hide | past | favorite | 2 comments


Swift is really nice to write. I wish I were paid to use it! I spent this weekend toying with embedded Swift. I work day to day with PHP and recent versions have introduced some language features that make it much nicer than it used to be (constructor property promotion, readonly properties) but I try to keep a rule of no PHP at the weekend.

https://madmachine.io/products/swiftio-playground-kit


“No macros” only is partly true nowadays. Swift has macros (https://docs.swift.org/swift-book/documentation/the-swift-pr...), but they’re less powerful than other macro systems; you cannot, for example, read a file in a macro (“They transform one AST into another AST without depending on any external state, and without making changes to any external state”)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: