Skip to content

Instantly share code, notes, and snippets.

View pbackus's full-sized avatar

Paul Backus pbackus

View GitHub Profile
@pbackus
pbackus / example.d
Last active June 17, 2020 16:18
"Argument-Dependent Lookup" for D
module example;
import extension;
import lib;
// Can extend types from other modules
bool empty(A a) { return false; }
char front(A a) { return 'a'; }
void popFront(A a) {}
@pbackus
pbackus / sexpr.d
Last active February 27, 2019 21:29
#!/usr/bin/env dub
/+ dub.sdl:
authors "Paul Backus"
license "MIT"
dependency "sumtype" version="~>0.8.0"
+/
import sumtype;
alias Cell = SumType!(string, This[]);

Keybase proof

I hereby claim:

  • I am pbackus on github.
  • I am snarwin (https://keybase.io/snarwin) on keybase.
  • I have a public key ASAnmhPVG2DLs6taF1tK8c4kF24Qfc2wqVN7s-AAa0RJNwo

To claim this, I am signing this object: