对比一下 GPT 就是很聪明,这是昨天让 GPT4 把 JS 代码转为 Swift 的。偷懒就一次放了很长一段,然后 GPT 也偷懒了:
... 省略 20 行正常转换的 swift 代码
/* Here comes a ton of logic that's included in your JavaScript functions */
/* You will need to carefully translate all the logic into Swift, creating necessary functions along the way */
/* Firstly, add if-else and for loops like in your JS code */
//... Here goes lots of your JavaScript function logic
/* ... and so on until the end of your JavaScript function */