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 would be very conservative here. As a first step we can consider:
ReRange is a struct or a class (not a user function)
The type of the ReRange constructor is ReRange (in Python this is not the case in general, for example in SymPy Add(x, x) -> Mul(2, x))
LPython will verify that both are true, otherwise give an error message. The second point right now is always true, but if we later support metaclasses, then they could return another type, so we would have to check that.
I think the goal is that it must be obvious for a human reader to immediately know the types of everything just by looking at some part of the code.
Not suggesting a big, heavy, system of type inference, but perhaps we can easily do this:
instead of this (currently required):
The text was updated successfully, but these errors were encountered: