Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mavhc
on April 12, 2018
|
parent
|
context
|
favorite
| on:
Why Does “=” Mean Assignment?
What I've not seen is examples of needing to distinguish between assign and compare, that outweigh the added complexity.
if x=y # obviously compare x=y # obviously assignment x=y=z # is that really needed? If so, brackets
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
if x=y # obviously compare x=y # obviously assignment x=y=z # is that really needed? If so, brackets