Skip to content

Instantly share code, notes, and snippets.

@skial
Last active August 29, 2015 14:21
Show Gist options
  • Save skial/588dee9226301e9f8ab1 to your computer and use it in GitHub Desktop.
Save skial/588dee9226301e9f8ab1 to your computer and use it in GitHub Desktop.
Haxe 3.2.0 EitherType example used in http://haxe.io/releases/3.2.0/
-js Main.js
-main Main
package;
import js.html.Blob;
class Main {
static function main() {
var blob1 = new Blob(['<a href="http://haxememes.tumblr.com/post/52244226107/type-inference">Haxe Memes</a>']);
var blob2 = new Blob([blob1, '<a href="http://haxememes.tumblr.com/post/98160270445/simon-working-on-haxe">Haxe Memes</a>']);
}
}
(function (console) { "use strict";
var Main = function() { };
Main.main = function() {
var blob1 = new Blob(["<a href=\"http://haxememes.tumblr.com/post/52244226107/type-inference\>Haxe Memes</a>"]);
var blob2 = new Blob([blob1,"<a href=\"http://haxememes.tumblr.com/post/98160270445/simon-working-on-haxe\">Haxe Memes</a>"]);
};
Main.main();
})(typeof console != "undefined" ? console : {log:function(){}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment