Open nsensfel opened 4 years ago
The parser_rework
branch added the FutureType
class to Fate (to delay having to distinguish between a string and a variable name until it becomes clear whether a string would make sense). This might make it easier to add the feature:
Map<String, Collection<YetUndeclaredType>>
.(future_type not_yet_declared_class)
.
While having recursive structures is troublesome because it complicates the interpreter's implementation (copy by value on an infinitely recursive structure is... complicated), having fields with pointers to yet undefined types should not be an issue.
I'll consider it for the second version of Fate.