There are a few I’m aware of:
- Rust-style
use(multiple imports per statement, renaming items usingas) - Java-style
import(single import per statement, no renaming (afaik)) - Zig-style
let xlib =(imports as assignments) - C-style
(no importing, just pastes the code of the named file)
I think C# handles this pretty well. You include namespaces with whatever granularity you need, down to a single class (or interface or whatever) and can alias them.
using MyProject.Domian.Entities; //the whole module using Routes = MyProject.Api.Contract.Routes.Http; //an aliased single classI bet Java had this too, C# us still mostly Java: Microsoft Edition.
Yeah C# is my favorite, followed by how python does it. Both are very good.
Java doesnt have aliases. You can do glob imports of a particular package (IE all the classes) and you can statically glob import all the static functions in a class but uh yeah that’s it
Wow, now I have something to hold over all my Java dev friends. Thanks!
you can also tell them java cant handle.pointers. i have worked with a lot of backend c code using c#.
not sure about the following but:
can you control how a struct is handled in memory in java? (had tto do this with a c# front end calling a credit card verifyling service/library written in c++)
do they have value types?
Value types are in work, you can test on dev branches.


