Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
int_19h
on Jan 20, 2018
|
parent
|
context
|
favorite
| on:
JEP 325: Switch Expressions
Arrows has been historically used for both functions and matches in languages that support both. E.g. Ocaml:
let rec fib = fun x -> match x with | 0 -> 1 | 1 -> 1 | _ -> fib (x - 1) + fib (x - 2)
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: