-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
improvementimproves existing functionalityimproves existing functionalityproposalpending discussion about something to dopending discussion about something to dospecificationinvolves the nyan language specificationinvolves the nyan language specification
Description
Currently, nyan object declarations start with the object name followed by parent and member definitions. The parser expects no specific keyword that identifies an object. Instead, the parser assumes that all non-keyword tokens start an object declaration. This also makes the parser rely on an implicit order of definitions in the file (file parameter -> imports -> objects).
# Current implementation
ExampleObject(Parent):
member_a : int = 5Proposed changes:
- All object declarations must start with
obj objbecomes a keyword
# Proposed implementation
obj ExampleObject(Parent):
member_a : int = 5Advantages:
- Makes it easier to introduce new data structures (if necessary)
- Definitions of objects, parameters and imports can be read in any order
Metadata
Metadata
Assignees
Labels
improvementimproves existing functionalityimproves existing functionalityproposalpending discussion about something to dopending discussion about something to dospecificationinvolves the nyan language specificationinvolves the nyan language specification