News for hackers. Stuff that matters.
Re:SwiftWasm: Run Swift in Browsers by robbyking on Friday May 10, 2019 @04:08PM (#19881734)
How is Swift JavaScript-like?
Re:SwiftWasm: Run Swift in Browsers by _bxg1 on Friday May 10, 2019 @04:12PM (#19881765)
Syntactically it's like someone took TypeScript and said, "what are a couple of tweaks we can perform to make it slightly more ergonomic, and also how do we get rid of the garbage collector".
Re:SwiftWasm: Run Swift in Browsers by jdmoreira on Friday May 10, 2019 @05:28PM (#19882412)
No. They are both typed languages but the feature set is not even comparable. Swift is a huge language
Re:SwiftWasm: Run Swift in Browsers by _bxg1 on Friday May 10, 2019 @05:36PM (#19882477)
I'm not saying they're equivalent, I'm saying if you're used to reading TypeScript then Swift will be very familiar, syntactically. That matters if you're thinking about splitting your codebase across two languages.