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
I think that just removing them would be better (except the built-in ones that work as they are now). So obj = (Cast) o; would become self.obj = o
Actually, I thing this would behave pretty well, or am I wrong?
Activity
natural commentedon Apr 21, 2012
What do you think the behavior for translating casts should be? I realize there's a problem, but I don't see an obvious target for casts.
iuliux commentedon Apr 21, 2012
I think that just removing them would be better (except the built-in ones that work as they are now). So
obj = (Cast) o;would becomeself.obj = oActually, I thing this would behave pretty well, or am I wrong?
natural commentedon Apr 23, 2012
I don't think we can simply drop the casts because
self.x = some_stringis totally different thanself.x = int(some_string).I think a reasonable approach would be:
What do you think of that?
iuliux commentedon Apr 23, 2012
That looks good. (
1.is also what I was suggesting with "except the built-in ones that work as they are now").I'll come with a pull request shortly.