News for hackers. Stuff that matters.
Re:LSP could have been better by spunker540 on Thursday October 12, 2023 @08:22AM (#37856201)
Some percent of python code I’ve written code be rewritten as JavaScript code at the function-level.
Re:LSP could have been better by Conscat on Thursday October 12, 2023 @02:27PM (#37860997)
Meta's "Transcoders" or whatever they changed the name to demonstrate that. However, if we want perfectly semantically equivalent functions, as soon as you add two numbers, then Python -> JS is impossible. The best we can do is approximately translate the behavior.