logoalt Hacker News

puelocesartoday at 9:36 AM2 repliesview on HN

Be careful, I’ve been using AI to translate my Swift code to Kotlin and sometimes it makes some mistakes that are invisible to you, because the languages are so similar, but it will bite you in the ass eventually, because there are subtle changes between the platforms


Replies

brabeltoday at 11:48 AM

I am sure you are right but if you tell the LLM to be careful with those it should easily avoid those mistakes. But yeah first you need to know what to look for.

jcollinstoday at 9:42 AM

Do you have an example? I don't doubt it, I just want to make sure I watch out for it.

One downside for sure is lack of deep knowledge on all these platforms can make it difficult to see issues.