rfc:structured_object_notation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
rfc:structured_object_notation [2016/07/31 08:53] – midorikocak | rfc:structured_object_notation [2016/07/31 08:58] – midorikocak | ||
---|---|---|---|
Line 118: | Line 118: | ||
Instead of instantiating objects on the fly, here I propose a structured definition of an object using this syntax: | Instead of instantiating objects on the fly, here I propose a structured definition of an object using this syntax: | ||
- | < | + | < |
- | + | object | |
- | Object | + | |
$world = " | $world = " | ||
// allowed methods comes after method definition | // allowed methods comes after method definition | ||
Line 140: | Line 139: | ||
}; | }; | ||
} | } | ||
- | + | </code> | |
- | < | + | |
An object can be instance of a class, if it's not defined, is instance of an anonymous class. | An object can be instance of a class, if it's not defined, is instance of an anonymous class. |
rfc/structured_object_notation.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1