News for hackers. Stuff that matters.
Re:Fish (shell) porting to Rust from C++ by samgranieri on Tuesday January 31, 2023 @08:32AM (#34594788)
Rust 101 would definitely be a weed out class for students trying to get a CS degree!

Context: I took C++ back in college in 1999 and 2000. There were students who struggled with it then who dropped CS as a major. Later on I heard that Java took over as a 101 class. Now I think it’s Python.

Re:Fish (shell) porting to Rust from C++ by hdhrufjdi on Tuesday January 31, 2023 @08:37AM (#34594837)
And why would that be the case?
Re:Fish (shell) porting to Rust from C++ by zozbot234 on Tuesday January 31, 2023 @08:58AM (#34595026)
Heap allocation doesn't really come up all that much in "101" programs, though. You have Strings of course, but that's about it. So I think teaching Rust could work, people just haven't gotten around to trying it. Most intros to Rust including the official book explicitly assume familiarity with some other programming language, and often fail to explain other things (at either the "low" or "high" level of semantics) that a 101 student wouldn't know.