Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kqr
on May 30, 2023
|
parent
|
context
|
favorite
| on:
Sigils are underappreciated (2022)
One of the things sigil allow you to do is overload other syntax. The example I usually bring up is the difference between
@hash{a,b,c}
which returns a list containing the values associated with keys a, b, and c; and on the other hand
$hash{a,b,c}
which returns the single item associated with the key constructed from concatenating a, b, and c (used to emulate a three-dimensional array.)
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: