Re:Java 21 makes me like Java again
by gabereiser on Saturday September 16, 2023 @07:12PM
(#37539766)
no inheritance but there are interfaces to be able to provide alternate implementations. Similar to traits in Rust. If it quacks like a duck, has feathers like a duck, swims like a duck…
Go just assumes if you satisfy the interface, you’re good.
Re:Java 21 makes me like Java again
by riku_iki on Saturday September 16, 2023 @07:16PM
(#37539795)
maybe, it is just some effort for someone who coded in classic OO for last 20 years to wrap head around this new concept fast and judge if it will satisfy all/most use cases.
Go just assumes if you satisfy the interface, you’re good.