20 ms·
So… drop
by demarq 1y ago
So… drop
- mettamage 1y agoWhat do you mean by that? Is `drop` a language construct in another language?
- brigandish 1y agoIt's also in this comment, which reads like Gen Zed slang. https://news.ycombinator.com/item?id=44012969 https://news.ycombinator.com/item?id=44012969
- dminik 1y agoYes, it's called Drop in rust: https://doc.rust-lang.org/std/ops/trait.Drop.html https://doc.rust-lang.org/std/ops/trait.Drop.html
- brigandish 1y agoDrop?
- DemocracyFTW2 1y agoit's an annoying usage because you never know whether it means "sth new appeared" or "sth old stopped being available"
- lucasyvas 1y agoThe more this stuff gets introduced the more I’m convinced to use Rust everywhere. I’m not saying this is the Rust way - it’s actually reminiscent of Python/C#. But, Rust does it better. If we keep going down these roads, Rust actually becomes the simpler language as it was designed with all of these goals instead of shoe-horning them back in.
- CryZe 1y agoFirst it was "Why Do Animals Keep Evolving into Crabs?", now it's "Why Do Programming Languages Keep Evolving into Crabs?"
- demarq 1y agoNot sure I agree or maybe we do. I think JavaScript should remain simple. If we really need this functionality we can bring in defer. But as a 1:1 with what is in golang. This in between of python and golang is too much for what JavaScript is supposed to be. I definitely think that the web needs a second language with types, resource management and all sorts of structural guard rails. But continuing to hack into JavaScript is not it.