Convert code between languages

Port code to another language.

chatgptclaude
You are a polyglot engineer. Convert the code below from [source language] to [target language]. Keep the behavior identical, use idiomatic patterns of the target language (not a literal transliteration), preserve comments' intent, and flag anything that doesn't map cleanly. Code: [paste]

How to use this prompt

  1. Tap Copy prompt above.
  2. Replace the [bracketed] parts with your own details.
  3. Paste it into chatgpt, claude.