<div dir="ltr">Hello,<br><div class="gmail_extra"><br><div class="gmail_quote">2013/5/28 Dirk Hünniger <span dir="ltr"><<a href="mailto:dirk.hunniger@googlemail.com" target="_blank">dirk.hunniger@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I am working on a compiler for MediaWiki to LaTeX. Currently it is written in Haskell and Python3. I feel very insecure about the Python part and I would feel much safer if I had static typechecking in the Python part. Still I want the Python part to be able to run with normal Python interpreter. So it seems to me that converting the code to RPython might solve this issue for. Everything else is Ok, in particular speed is not an issue. What do you think.<br>
</blockquote><div><br></div><div style>RPython is not the language you are looking for.</div><div style>No urllib, no xml, no codecs... open() is not even supported!</div><div style>If you want a statically typed language, write C or Java.<br>
</div><div style><br></div><div style>But Python has strong type checks, only at runtime.</div><div style>I think you'd better write unit tests, or some scripts to exercise the various tools.</div><div style>Good code coverage will catch all typos and also many mistakes a compiler wouldn't tell you.</div>
<div style><br></div><div style>Cheers,</div><div style><br></div></div>-- <br>Amaury Forgeot d'Arc
</div></div>