3 ms·
Well, OOP was used, and its naming conventions settled, decades before Rust or D came along. See https://en.wikipedia.org/wiki/Simula https://en.wikipedia.org/w
by justeleblanc 4y ago
Well, OOP was used, and its naming conventions settled, decades before Rust or D came along. See https://en.wikipedia.org/wiki/Simula https://en.wikipedia.org/wiki/Simula for example. They decided to go against established conventions (as far as I understand - I don't know what the relationship between Rust modules and classes is). That's fine, but let's not pretend otherwise.
- LegionMammal978 4y agoA Rust module is similar to a Java package or a C# namespace. Java calls this notion "package-private" [0], at least in some of its documentation. Delphi calls this notion "private" [1], and has a separate "strict private" for members only visible from the containing class. Also, C# uses "internal" to refer to a different notion, that the type or member can be accessed from anywhere in the containing assembly, not just the containing namespace [2]. (In D this is "package", and in Rust this is "pub(crate)".) I'm just trying to push back on treating "other languages" as a unified whole here. [0] https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html https://docs.oracle.com/javase/tutorial/java/javaOO/accessco... [1] https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Classes_and_Objects_(Delphi)#Private.2C_Protected.2C_and_Public_Members https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Clas... [2] https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers https://learn.microsoft.com/en-us/dotnet/csharp/programming-...