Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just returned to Rust after a few years, and the syntax is even more unreadable. Half of my code is just type signatures. I don't remember it being like that back in 2016 -- it seems like the convention changed and any crate you import returns the wildest types.


On the contrary. Entire `where` blocks can now disappear thanks to notation like

    arg: impl Iterator<Item: Debug>


Which I honestly dislike. "where clauses" were already quite syntactically limited (there are lifetimes dependencies that the compiler understand which you cannot possibly express even using for<'a>), and now "impl Trait" is reinventing the wheel trying to catch up with where with new exotic syntax like the use<> clauses.


I use C# everyday and never want to switch languages. I just don’t understand the appeal to other things and I’ve certainly dabbled enough.

It would probably just be TS.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: