Skip to content

Instantly share code, notes, and snippets.

View cassiemeharry's full-sized avatar
❄️
Why does GitHub have statuses?

Cassie Meharry cassiemeharry

❄️
Why does GitHub have statuses?
  • Seattle, WA, USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nickmeharry on github.
  • I am nickmeharry (https://keybase.io/nickmeharry) on keybase.
  • I have a public key whose fingerprint is CF31 F4DA CF48 B542 7894 EFC0 BD19 23C0 05C6 08AB

To claim this, I am signing this object:

@cassiemeharry
cassiemeharry / lens-types.md
Created August 24, 2012 23:43
Thoughts on Roy Lenses

Lens Types

Looking into the Haskell/JS hybrid Roy, and one of the proposed features are lenses. They are basically sugar over attribute getters and setters, and look like this:

set .x 3 {x: 1, y: 2} == {x: 3, y: 2}
get .name {title: "Mr.", name: "Bob"} == "Bob"

This is much like Python's getattr and setattr, except that these are static (no