- simple const versus block (by Ian) https://try.haxe.org/#22DAf8A8 - parsing -block (by AlexHaxe) https://try.haxe.org/#3Ffe6Ca4 - markup-detection (by LordMZTE) https://try.haxe.org/#437c89dd - html-ouput for unit-tests (by AlexHaxe) https://try.haxe.org/#C3c796C0 - abstract iterator-sugar to have forEach (by LordMZTE) https://try.haxe.org/#38da875e - youtube-player (by LordMZTE) https://try.haxe.org/#40A43B29 - create button and css injection (by Ian) https://try.haxe.org/#6E0F441e - switch inside array comprehension and "continue" (by Antriel) https://try.haxe.org/#Da3c9235 - Compiler selects the first compatible overload in the order of declaration https://try.haxe.org/#BA34d02F - macro functioncalls by name (by klabz) https://try.haxe.org/#458e0E02 https://try.haxe.org/#B3E5C8B0 <- fetching metas from macros - cordova: https://try.haxe.org/#Db85252a (by haxiomic) - multiple arguments: https://try.haxe.org/#F783B3B3 - overloads: (die selbe function kann unterschiedlich definiert werden) https://try.haxe.org/#618992E3 - countdown by zeta: https://try.haxe.org/#9e8c50CE - filesave.js by half: https://try.haxe.org/#aBDE1584 - enum-flag-spice by rudy: https://try.haxe.org/#B28804C8 - timer.measure by R.c: https://try.haxe.org/#95529C31, https://try.haxe.org/#7d376Bce - multiline string literals by Rudy: https://try.haxe.org/#01384362 - fo-fun by Ian: https://try.haxe.org/#7b766bD9 - meta by macro by montibbalt: https://try.haxe.org/#8f677aae - multi-type params via abstracts by Ian: https://try.haxe.org/#B04A765c - generic multi-type params by Zeta: https://try.haxe.org/#741665d1 - backward iteration by Nanjizal: https://try.haxe.org/#E1b00F02 - backward iteration by NullStack: https://try.haxe.org/#0CFf91BF - simple http usage: https://try.haxe.org/#a09eB023 - typePathToExpr by zeta https://try.haxe.org/#d4097687 - build macro to gen IDs (by zeta)): https://try.haxe.org/#67cC887a - @:autoBuild macro to gen subclass-names (by Rudy): https://try.haxe.org/#8E922c3F - superlazy by filtr3k: https://try.haxe.org/#CB705B57 ( & mega fox trick: https://try.haxe.org/#8771d2b7 \o/ ) - simple decimal to binary convertor by Kacper: https://try.haxe.org/#A202ceEC + hex -> https://try.haxe.org/#1c373A3F all here: https://try.haxe.org/#2774Acf4 - first cool SYNTH by half: https://try.haxe.org/#33Cd42ae \o/ - first notes 5 min later: https://try.haxe.org/#d2f1D01f - how to play internetradio (by half for sure;) -> https://try.haxe.org/#4A8fFF23 - base 12 number calculator (by Nanjizal): https://try.haxe.org/#60dBd200 - inside/outside of macro-context (by Rudi): https://try.haxe.org/#42E1d128 - pure @build macro to handle abstracts (by MSGhero\o/): https://try.haxe.org/#c0Ab82BE - multi "null" types into "monomorph" style (by my old friend Rudy:) https://try.haxe.org/#A1c46014 ----------- MACRO: list reification var list = ["a","b","c"]; var expr = macro $b{[for(a in list) macro trace($v{a})]}; ----------- ANY: var something:Any = getSomeValue(); if (something is SomeType) (cast something:SomeType).someField = 5; ------- var something:Any = getSomeValue(); var typedThing = cast(something, SomeType);// throws an error if something isn't SomeType typedThing.someField = 5; // or simply cast(something, SomeType).someField = 5; ----------- var tiles = [ for(_ in 0...height) [ for(_ in 0...width) 0 ] ]; ----------- --- meine samples: - parsing out comments: https://try.haxe.org/#d86D1Fee - nestedArray: https://try.haxe.org/#3419e6Df - testing @:structInit https://try.haxe.org/#A329Da04 casting: https://try.haxe.org/#F5FC710f https://try.haxe.org/#9Be853CD - testing balancedTree performance - maze rekursive: https://try.haxe.org/#24742354 + iteration: https://try.haxe.org/#E23ddC58 + colors: https://try.haxe.org/#e716a7e2 - game of life_ https://try.haxe.org/#c1bF652A rules at first: https://try.haxe.org/#1293AAFd incetc picture: https://try.haxe.org/#28a182C2 - structInit und params fürs layout: https://try.haxe.org/#e15f84DB - abstracts typeinjection statt OOP: https://try.haxe.org/#a4d89C17 - my youtube-injection: https://try.haxe.org/#cB1B7B0B 0.5: -> https://try.haxe.org/#F39105fb ( https://try.haxe.org/#684D7DBc ) - haxe expr-serialization-test: https://try.haxe.org/#Fb26FbBc - Formula: (old: https://try.haxe.org/#c7D4Cd0e) https://try.haxe.org/#9880221d (+ haxe 4.1 exeptions for errorhandling) - haxeui-shaderURL-generator: convertor: https://try.haxe.org/#868ccDb4 (https://try.haxe.org/#141B7f55 https://try.haxe.org/#74514e0d default formula: https://try.haxe.org/#2f15E86a ) das hier funzt auch OHNE SSL-maitag-FRAME: https://try.haxe.org/#98c255ec - peote-event: https://try.haxe.org/#9f80a93a # macro (non inline generation!): https://try.haxe.org/#4566ff2f for haxebot all into Source 1: https://try.haxe.org/#f3EeDB95 - linedrawing into order: https://try.haxe.org/#0917FacF - get defaults for fieldvalues by buildmacro: https://try.haxe.org/#04B1c045 - posix conform regexp charclasses: https://try.haxe.org/#50a8E932 (only for [[:digit:]] at now! needs also some #if js condition around only there it doesn'T work) - regexp to make all words uppercase: https://try.haxe.org/#1398ce4a -------------------------------------------------------- Apropos WORDS at the haxelib web-page (at the bottom!): Thousands of coders are using Haxelib to find, share, and reuse code — and assemble it into powerful and new ways. So don't be shame and help others also into the boring parts of coding! Enjoy our libspace, it's is great!