From 9c86b0bddfbb1efb7a6ebdb5cd589b2f98ae359f Mon Sep 17 00:00:00 2001
From: Mike Gerwitz
+ Trait support was introduced in celebration of becoming a GNU
+ project. It is currently under development and has not yet been
+ finalized, but has been included in each GNU ease.js release since v0.2.0,
+ and is stable.
+
+ Documentation will be available once some final details are
+ finalized. Until that time,
+ the test
+ cases provide extensive examples and rationale. The following posts
+ also summarize some of the features:
+
+
@@ -126,6 +126,64 @@
↑
+
+ Traits As Mixins
+ ¶
+
+
+ All three common access modifiers—public, protected and + private—are supported, but enforced only in ECMAScript 5 and later environments. +
++ ++
+ In the above example, the database connection remains encapsulated within + DatabaseRecord. Subtypes are able to query and escape strings and + external callers are able to retrieve a name for a given id. Attempting to + access a private or protected member externally will result in an error. + Attempting to access a private member from within a subtype will result in an + error. +
++ Alternatively, a more concise style may be used, which is more natural to + users of JavaScript's native prototype model: +
++ ++→ Read more in manual +↑ + +
- All three common access modifiers—public, protected and - private—are supported, but enforced only in ECMAScript 5 and later environments. -
-- --
- In the above example, the database connection remains encapsulated within - DatabaseRecord. Subtypes are able to query and escape strings and - external callers are able to retrieve a name for a given id. Attempting to - access a private or protected member externally will result in an error. - Attempting to access a private member from within a subtype will result in an - error. -
-- Alternatively, a more concise style may be used, which is more natural to - users of JavaScript's native prototype model: -
-- --→ Read more in manual -↑ - -
- Trait support was introduced in celebration of becoming a GNU - project. It is currently under development and has not yet been - finalized, but has been included in each GNU ease.js release since v0.2.0, - and is stable. -
-- Documentation will be available once some final details are - finalized. Until that time, - the test - cases provide extensive examples and rationale. The following posts - also summarize some of the features: - -
- -↑ - -