![](https://lemmy.world/pictrs/image/42de7b68-ee8b-40f5-96f6-6e8cc418441e.jpeg)
![](https://lemmy.ml/pictrs/image/q98XK4sKtw.png)
That sounds odd. That also means that a mapper, command, service,… can never return a class object or entity. Most of the programming world is based on oop o.O
Keep in mind im not talking about the usage of pointers, but reference typed variables.
The real deal y0
That sounds odd. That also means that a mapper, command, service,… can never return a class object or entity. Most of the programming world is based on oop o.O
Keep in mind im not talking about the usage of pointers, but reference typed variables.
Thanks for the response. Ive heard of rust’s compiler being very smart and checking a ton of stuff. Its good thing it does, but i feel like there are things that can cause this issues rust cant catch. Cant put my finger on it.
What would rust do if you have a class A create something on the heap, and it passes this variable ( by ref ? ) to class B, which saves the value into a private variable in class B. Class A gets out of scope, and would be cleaned up. What it put on the heap would be cleaned up, but class B still has a reference(?) to the value on the heap, no? How would rust handle such a case?
Serious question, how would using rust avoid this? Rust still has reference types in the background, right? Still has a way to put stuff on the heap too? Those are the only 2 requirements for reusing memory bugs
Oh wait, youre giving me great theoretical ideas here. I didnt think about it untill now but ( atleast in central europe ) a lot of cosplayers use eva in its foam form to craft a lot of their costumes or props. If a printable eva exists, they would no longer need to do the cutting and puzzling of eva foam boards. Print it like how you need it!
I can see why you wrote a paper on it and is very cool to hear about!
Also never heard the stratasys story before lol
Huh, til.
Also, it was interesting to see all the issues he had with it, but i can see its uses. Like you said though, messy as hell
Thats interresting, thanks! Stuff for me to look into!
I also think halfway through the conversation i might have given the impression i was talking about pointers, while it was not my intention to do so. That said, the readonly/mutable reference thing is very interresting!
Ill look into what rust does/has that is like the following psuedocode :