Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pjmlp
on July 15, 2022
|
parent
|
context
|
favorite
| on:
How I went about learning Rust
It is no different than using interfaces, protocols, pure virtual base classes....
dllthomas
on July 15, 2022
[–]
It's similar, but there are some differences. Notably, my package can implement my trait for your type, while my package (usually? always?) cannot make your type inherit from my virtual base class.
pjmlp
on July 15, 2022
|
parent
|
next
[–]
Depends on the flexibitly of the language, there isn't a golden way to do that across all variations of OOP.
eklavya
on July 15, 2022
|
parent
|
prev
[–]
Wrapper classes should be equally good once Valhalla (jdk) lands, without introducing another pointer indirection.
adamc
on July 15, 2022
|
root
|
parent
[–]
Interesting but Java gets more and more complex in a way that does not make me want to write things in Java.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: