4 ms·
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
by apgwoz 14y ago
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.
- lucian1900 14y agoTwisted'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.