Join Slack
Powered by
re KT-6728 - why not just use function and pass a ...
# language-proposals
n
natpryce
03/01/2016, 12:16 PM
re KT-6728 - why not just use function and pass a reference to the constructor you want to call? E.g.
Copy code
class Banana { } val factory : () -> Banana = ::Banana val newBanana = factory()
Open in Slack
Previous
Next