1 Fix object table entries for attributes not provided by any known object, or provide an
2 error, potentially overridden by options. For example, the augmented assignment methods
3 are not supported by the built-in objects and thus the operator module functions cause
4 the compilation to fail.
5
6 Support tuple parameters.
7
8 Consider type deduction and its consequences where types belong to the same hierarchy
9 and where a guard could be generated for the most general type.
10
11 Consider attribute merging where many attributes are just aliases for the same underlying
12 definition.
13
14 Consider merging the InspectedModule.store tests with the scope conflict handling.
15
16 Consider permitting multiple class alternatives where the attributes are all identical.
17
18 Support class attribute positioning similar to instance attribute positioning, potentially
19 (for both) based on usage observations. For example, if __iter__ is used on two classes,
20 the class attribute could be exposed at a similar relative position to the class (and
21 potentially accessible using a LoadAttr-style instruction).
22
23 Consider references to defaults as occurring only within the context of a particular
24 function, thus eliminating default value classes if such functions are not themselves
25 invoked.
26
27 Consider labelling _scope on assignments and dealing with the assignment of removed
28 attributes, possibly removing the entire assignment, and distinguishing between such cases
29 and unknown names.
30
31 Check name origin where multiple branches could yield multiple scope interpretations:
32
33 ----
34 try:
35 set # built-in name
36 except NameError:
37 from sets import Set as set # local definition of name
38
39 set # could be confused by the local definition at run-time
40 ----
41
42 Support __init__ traversal (and other implicit names) more effectively.
43
44 Check context_value initialisation (avoiding or handling None effectively).
45
46 __getitem__ could be written in Python, using a native method only to access fragments.
47
48 Support slicing.
49
50 Consider better "macro" support where new expressions need to be generated and processed.
51
52 **** Constant attribute users need not maintain usage since they are already resolved. ****
53
54 Loop entry points should capture usage to update later assignments in the loop.
55 The continue and break statements should affect usage propagation.
56
57 Consider handling CallFunc in micropython.inspect in order to produce instances of specific classes.
58 Then, consider adding support for guard removal/verification where known instances are involved.
59 Consider handling branches of values within namespaces in order to support more precise value usage.