Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kabes
on Nov 8, 2023
|
parent
|
context
|
favorite
| on:
Gleam: a type safe language on the Erlang VM
Javascript has supported this for many years.
Hasnep
on Nov 8, 2023
|
next
[–]
It definitely hasn't, JavaScript doesn't even have named arguments.
kabes
on Nov 12, 2023
|
parent
|
next
[–]
If you pass your arguments as an object they are named and you can rename them. So for all practical purposes that's the same thing.
lpil
on Nov 8, 2023
|
prev
[–]
It doesn't have labelled arguments. It can roughly simulate them using an object, but there's a slight performance cost to doing so.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: