A dad took photos of his toddler for a doctor – Google flagged him as a criminal
nytimes.com949 pointsby dklsf559 comments
General government gross debt [Percent of GDP]
Country Year 2012 2013 2014 2015
China 26 23 20 19
United States 102 104 106 107
http://www.imf.org/external/pubs/ft/weo/2014/01/weodata/weor... let do_something (thing : Thing.t) (logging : [`With_logging | `No_logging]) =
...
Even better, it can even infer the type based on you using it (for example matching on it): let do_something thing logging =
let logging_as_bool =
match logging with
| `With_logging -> true
| `No_logging -> false
in
....
It explains how to minimize the decisions trees you obtain from a match statement, so you gain a ton of efficiency over a naive implementation, especially for large, multi-column matches.