diff --git a/README.md b/README.md index 72ae34e..d51aa15 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,15 @@ class. The constructor is provided as the `__construct()` method (influenced by }, }); +The above creates an anonymous class and stores it in the variable ``Foo``. You +have the option of naming class in order to provide more useful error messages +and toString() output: + + var Foo = Class( 'Foo', + { + // ... + }); + ### Extending Classes Classes may inherit from one-another. If the supertype was created using `Class.extend()`, a convenience `extend()` method has been added to it. Classes diff --git a/TODO b/TODO index d56accc..c703ff4 100644 --- a/TODO +++ b/TODO @@ -12,8 +12,6 @@ Misc functions, will not impact function logic. - Should be able to run source file without preprocessing, so C-style macros cannot be used (# is not a valid token) - - Class/Interface naming - - Will be especially helpful for error messages - Class module is becoming too large; refactor Property Keywords