News for hackers. Stuff that matters.
Re:Fluent Interfaces Are Bad for Maintainability by hungerstrike on Tuesday March 20, 2018 @10:13AM (#16628695)
Kotlins `apply` seems exactly like the much maligned `with` statement from JavaScript, which has been deprecated.

Why is it elegant here, but deprecated there?

Re:Fluent Interfaces Are Bad for Maintainability by abiox on Tuesday March 20, 2018 @11:12AM (#16629217)
i suspect some or many of the reasons it's discouraged in js do not apply to kotlin. as we all know, js has... unique constraints in it's design. why is it deprecated in js?
Re:Fluent Interfaces Are Bad for Maintainability by m00g00 on Tuesday March 20, 2018 @10:20AM (#16628751)
Took the words right out of my mouth (literally, and 5 minutes faster).

Why? I'd say because Douglas Crockford.