4 ms·
I’m not sure why you’re comparing __new__ to constructors in other languages. Ruby has the same thing but it’s called ‘new’. Implementing the type of customiz
by dumah 1y ago
I’m not sure why you’re comparing __new__ to constructors in other languages.
Ruby has the same thing but it’s called ‘new’.
Implementing the type of customization (idiomatically) that __new__ provides in Kotlin and JS isn’t any cleaner.