Hacker News new | ask | show | jobs
by fghgfdfg 3517 days ago
Sure, you can do things like that too in Ada. To some degree that might make sense sometimes, but having the option of an equally safe type that's used in a "normal" fashion, rather than something that has to go through the proper library interface has some advantages as well.
1 comments

It's relatively uncommon in Rust in general to create types without going through their constructors.