Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pcstl
on Oct 16, 2019
|
parent
|
context
|
favorite
| on:
Beating Decades of Optimized C with 80 Lines of Ha...
~ does indeed denote named arguments. To call a function named f which has an argument named arg with arg set to the value x, the syntax is:
f ~arg:x
gpderetta
on Oct 16, 2019
[–]
But what about ~buf here:
let len = Core.In_channel.input in_ch ~buf ~pos:0 ~len:buf_size
test9753
on Oct 16, 2019
|
parent
[–]
~buf is shorthand for ~buf:buf
gpderetta
on Oct 16, 2019
|
root
|
parent
[–]
Oh, nice.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: