Skip to content

Instantly share code, notes, and snippets.

@frabbit
frabbit / index.sh
Last active October 15, 2020 14:42 — forked from zkat/index.js
npx is cool
#!/usr/bin/env bash
echo "hello world"
@frabbit
frabbit / gist:4317936
Created December 17, 2012 12:26 — forked from anonymous/gist:4317927
Haxe Partial Application Proposal
// - Implicit and explicit PA (via partial function)
// - Short alternative for partial => part, foo.part(_)
// - Implicit as default usage (short and concise), explicit for corner cases, where implicit usage is not possible/ambigous
// - Explicit PA can handle all cases that implicit PA can handle + corner cases
// - Implicit PA is only applied if one of the arguments is an underscore
function foo(x:Array<Int>, ?a:Int, ?b:Int):Void;
// Implicit Explicit Type