Comment

Comment by thayne

> Python has no mechanism for embedding or forwarding methods

Scala 3 has export statements (https://docs.scala-lang.org/scala3/reference/other-new-featu...). I wish more OOP languages had something similar, so that there was less boilerplate when composing other objects.

And it is possible to implement something like that in python as a library, although a with a quick search I only found a couple of blog posts on how to implement something yourself.

parent thayne 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton