Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
maverwa
on July 21, 2023
|
parent
|
context
|
favorite
| on:
I have written a JVM in Rust
yeah, I'd assume as much. If it indeed falls back to a by-value comparison it would be slower, but should work.
xxs
on July 21, 2023
[–]
nope - it'd be plain wrong. Literals must be equal by reference, comparing them by value would just break JLS, as they would be equal to any other composed string by reference as well.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: