sugar

Syntaxic sugar for Haxe.


Keywords
di, sugar, syntax, syntaxic
License
MIT
Install
haxelib install sugar 1.0.1

Documentation

Haxe Sugar

The sugar haxe library provides several tools and syntaxic sugar to improve your Haxe experience and make your life easier.

To use Sugar, install it using haxelib install sugar (or lix install haxelib:sugar if you use Lix). Then, you have to add a macro call into your hxml file:

--macro sugar.Sugar.use("yourpackage")

Sugar will be used only in the files inside yourpackage (and its subpackages). If you want to use it in multiple packages, you can simply use multiple macro calls.

Features

Complex default values
Fallback values
Dependency Injection