News for hackers. Stuff that matters.
Re:Pyjaco - Python to JavaScript translator. by apgwoz on Monday June 18, 2012 @07:47AM (#4125948)
Does this provide a sane way to deal with callbacks? Obviously, in JavaScript you're writing callbacks all the time, and nested defs (think callbacks which call something that requires a callback... repeat) in Python are ugly and annoying. For example, try writing factorial in CPS style sometime in Python.
Re:Pyjaco - Python to JavaScript translator. by lucian1900 on Monday June 18, 2012 @08:01AM (#4125989)
Twisted's Deferreds solve this problem for Python already. They might even work unmodified with this translator, but they are a simple enough concept to re-create if necessary.