Why is Rust so bare-bones?
4mon 29d ago in rust@programming.devI'm not saying that there's a problem with doing things one way or another. Rather, I'm asking whether there's a problem with doing things differently that then led to this design decision to be made with Rust. I want to better understand how this language came to be.
I can see that. I'm coming in from the other extreme that is Python, where even the meta-programming is done in plain Python.
C++ was my first programming language. I remember the nightmare of dealing with dependencies and avoiding boost because it felt wrong to need a third part library for basic features. The toolchain for Rust is very nice (not just compared to C++, but all other languages I've worked with) and has so far been a huge joy to work with. The language itself too. I'm just curious about why the language likes to expose more of its features through meta-programming rather than directly in the language itself. Things like println! and format! being macros instead of functions, or needing a bunch of #[derive(Debug,Default,Eq,PartialEq)] everywhere for things that other language provide through regular code.
I'm not talking about what features are in the standard libraries vs third party libraries. I mean meta-programming as in the stuff that generates Rust code. Take console printing for example, we use a macro println! in Rust. Other languages provide an actual function (e.g. printf in C, System.out.println in Java, print in Python, etc). The code for my first project is also full of things like #[derive(Debug,Default,Eq,PartialEq)] to get features that I normally achieve through regular code in other languages. These things are still in the Rust standard library as I understand it.
[Panoramax] Local laws around street-level pictures
1y 16d ago in openstreetmap_ca@lemmy.caThanks, that's a good start.
The bigger question for me is whether there's more to it than privacy and blurring out faces.
asked questions that made educators interpret that I enjoyed bending the logic of what they were teaching.
I had this problem too but mainly for math. I'd do well in classes and tests, but the material just didn't make sense to me. It wasn't until I studied real analysis that everything started to click.
AI will replace programmers
1y 1mon ago in programmer_humor@programming.dev from lemmy.mlThat's also to make programming easier. Different programmers have different needs.
But the main benefits of static typing is in making the programming part easier. What do you gain from translating dynamically typed languages into a statically typed language?
A trick I've employed is to pretend to believe in something completely different. If it says "no, you're wrong" and goes on to tell me what I actually believe, then it's a good indicator that I might be on the right path.
Firefox Finally Did It (Tab Groups)
1y 1mon ago in linux@lemmy.ml from linuxiac.comTabs get in the way and force you to actually address them instead of ignoring them. In theory.
How reliable is SnapRAID?
1y 1mon ago in datahoarder@lemmy.mlMAKE IMPORTING GREAT AGAIN!
1y 2mon ago in programmer_humor@programming.dev from github.com

