1
0
Fork 0
Classical object-oriented framework for JavaScript [unmaintained] https://gnu.org/software/easejs
 
 
 
 
 
 
Go to file
Mike Gerwitz 017b85d75b
Copyright year updates for recent trait changes
* lib/Trait.js: Add Copyright year 2016.
* test/Trait/ContextTest.js: Add Copyright year 2016.
2016-12-29 03:11:49 -05:00
doc Update copyright years on main Texinfo manual page 2016-07-16 00:27:06 -04:00
lib Copyright year updates for recent trait changes 2016-12-29 03:11:49 -05:00
test Copyright year updates for recent trait changes 2016-12-29 03:11:49 -05:00
tools Fail mkrelease on npm publish failure 2016-07-21 01:24:45 -04:00
.gitignore Add missing INSTALL 2016-10-14 22:33:57 -04:00
.mailmap .mailmap updated with mtg@gnu.org 2015-05-11 23:11:25 -04:00
COPYING Split COPYING into two separate files: COPYING and COPYING.LGPL 2012-06-13 22:27:48 -04:00
HACKING README.md et. al. restructuring 2015-08-23 00:15:48 -04:00
INSTALL Add missing INSTALL 2016-10-14 22:33:57 -04:00
Makefile.am {default=>all} target 2015-12-22 23:04:31 -05:00
README Re-add README 2015-12-22 10:19:30 -05:00
README.md Add "Transparent error subtyping" to README 2016-07-16 00:01:09 -04:00
TODO README.md et. al. restructuring 2015-08-23 00:15:48 -04:00
autogen.sh Add autogen.sh 2016-04-21 22:42:10 -04:00
configure.ac dia check via configure 2015-12-22 22:52:04 -05:00
index.js Prototype wrapping using index function 2015-09-09 23:36:14 -04:00
package.json.in package.json licence field update to GPL-3.0+ 2016-04-06 19:34:00 -04:00

README.md

GNU ease.js

GNU ease.js is a classical object-oriented framework for Javascript, intended to eliminate boilerplate code and "ease" the transition into JavaScript from other object-oriented languages.

Current support includes:

  • Simple and intuitive class definitions
  • Classical inheritance
  • Traits as mixins
  • Access modifiers (public, protected, and private)
  • Abstract classes and methods
  • Interfaces
  • Static and constant members
  • Transparent error subtyping

Documentation

Comprehensive documentation and examples are available on the GNU ease.js website and in its manual.

Bug Reports / Feature Requests

Please direct bug reports and feature requests to bug-easejs@gnu.org or the project page on Savannah.

Why Classical OOP in JavaScript?

GNU ease.js was created (historically) for a number of reasons:

  • To "ease" object-oriented developers into JavaScript by providing a familiar environment.
  • To provide the maintenance and development benefits of classical OOP.
  • To provide features not included in the language, such as proper encapsulation through private/protected members, interfaces, traits, intuitive inheritance, and other conveniences.
  • To encapsulate the hacks commonly used to perform the above tasks.

Many JS purists believe that classical object-oriented programming should be left out of JavaScript and that one should stick strictly to prototypal development. While the two are related (they are both object-oriented), they can be applied to different problem domains in order to achieve results that are more natural or intuitive to developers; GNU ease.js works seamlessly with existing prototypes, allowing the developer to choose whether or not they want to use "classes".

Building and Installation

See INSTALL.

License

GNU ease.js is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

N.B.: Versions prior to 0.2.0 were released under the LGPLv3+. Upon becoming a GNU project, it was relicensed under the GPLv3+ to help the FSF stand strong in its fight against proprietary JavaScript. For more information, please see the NEWS file (which can be built with make NEWS) and https://gnu.org/software/easejs/whyfreejs.html.