We at Ajaxonomy are happy to announce the release of the first library in the Ajaxonomy Developer's Toolkit. The library is called JS Strict Data Types and attempts to provide a way to maintain strict data types in JavaScript. Strict data types are proposed in the next version of JavaScript, however it is hard to say when you will actually be able to use it in all browsers. So, JS Strict Data Types is an attempt to allow the use of strict data types now.
The library is very easy to use. Simply include the small 7K (uncompressed) js file in your web page or application and then you can start defining variable data types strictly through the methods used in the below example.
MyVar1 = new Int(12); //Creates an Integer variable MyVar2 = new Float(2.54); //Creates a Float variable MyVar3 = new String("Some Text"); //Creates a Sting variable MyVar4 = new Boolean(true); //Creates a Boolean variable
The library uses various methods to maintain the strict data type (if you choose not to use the methods in the library strict data types may not continue to be maintained). The below shows a few of the mathematical methods that are available in the library.
MyVar1.add(5); MyVar1.sub(2); MyVar1.mult(10); MyVar1.div(7);
Since there are quite a few methods that are used to guarantee that strict data types it is recommended that you read the documentation before using the library.
This beta 1.0 release of the library is released under the GNU Lesser GPL. So, it can be used for personal and commercial use. Because of this go ahead and use the library in other libraries or any JavaScript project.
You can see a demo page that uses the library and displays the results here.
You can download the library here.
You can go to the projects Google Code page here.
You can read the projects documentation here.
Delicious
Digg
StumbleUpon
Propeller
Reddit
Magnoliacom
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket
Recent comments
15 weeks 2 days ago
16 weeks 2 days ago
16 weeks 6 days ago
16 weeks 6 days ago
17 weeks 3 days ago
17 weeks 3 days ago
28 weeks 4 days ago
29 weeks 2 days ago
31 weeks 4 days ago
33 weeks 2 hours ago