[go: up one dir, main page]

objectinit

A simple macro to make initialising objects much easier: `new User().init({ name:'Jason', age:27, likes:['haxe','macros'] })`. It's type safe!
https://github.com/jasononeil/objectinit

Version Release Notes Install Downloads
1.3.0
10 years ago
Support .init(a,b,c) and .init(a=1,b=2,c=3) syntax. See README for details. haxelib install objectinit 1.3.0 506
1.2.2
11 years ago
Improved error positions, updated README to explain why quoted field names do not work. haxelib install objectinit 1.2.2 0
1.2.1
11 years ago
Improved error messages when an incorrect expression is used. haxelib install objectinit 1.2.1 9
1.2.0
11 years ago
Add `objectInit()` and `initObject()` aliases. Fix for PHP. Allow `new Project().init([ name, downloads, tags ])` syntax when local variables share the same name as the target properties. haxelib install objectinit 1.2.0 2
1.1.0
11 years ago
Provide alternative if the `.init()` method already exists on the object you're initing. haxelib install objectinit 1.1.0 3
1.0.0
11 years ago
Initial release. haxelib install objectinit 1.0.0 4

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub