You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many reasons why someone would want to perform a code translation, but two that come to mind are:
Translate code and have it function identically to the source but not intend to touch the post-translated code much
Intending to use it as a starting point for development in the target language.
Thusfar, this project attempts to strive for identical function (or as close as is reasonably possible) rather than a more idomatic translation that could be incorrect. High compatiblity most cases requires using wrappers in the target language, but this makes the target code less readable, less easy to modify and keeps baggage of the source language behind.
for instance, having a source of
ifx:
print(y)
and target of:
if py_is_bool(x)
py_print(y)
end
may function identically, but you might rather have:
# no-wrappers but may not function identically to the source python for all cases of x and yif x
puts(y)
end
I think it should be possible to offer two modes, with and without wrappers.
The text was updated successfully, but these errors were encountered:
There are many reasons why someone would want to perform a code translation, but two that come to mind are:
Thusfar, this project attempts to strive for identical function (or as close as is reasonably possible) rather than a more idomatic translation that could be incorrect. High compatiblity most cases requires using wrappers in the target language, but this makes the target code less readable, less easy to modify and keeps baggage of the source language behind.
for instance, having a source of
and target of:
may function identically, but you might rather have:
I think it should be possible to offer two modes, with and without wrappers.
The text was updated successfully, but these errors were encountered: