Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Viliam1234
on Jan 19, 2021
|
parent
|
context
|
favorite
| on:
Again on 0-based vs. 1-based indexing
What about using different types of brackets for different types of indexing?
p[0] = p{1}
The array length is the same either way, {} is syntactic sugar for subtracting 1 from the index.
Also, p«0.5» for the indecisive.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Also, p«0.5» for the indecisive.