|
|
|
|
|
by v8dev123
1870 days ago
|
|
Also, "Lack of Object-Orientation was a concern" Whenever you port a big program to another language it is important to be conservative, in my view. You don't want to make so many structural changes in the way things work in the original codebase while porting things over. You risk things becoming very confusing and the port could fail. In future iterations you could definitely make things more idiomatic in the target language. As far as Rust is concerned, it does not have traditional OO features. But by using the Deref/DerefMut trait specifically and traits in general I was able to recover and mimic a lot of OO behaviors present in rr in rd. The rd code may not always be beautiful. FYI, Rust had a GC also Classes in it's initial versions but they were removed for some reason!!! |
|