3 ms·
My first programming language was BASIC in the 1970s. When I learned C in the 1980s, programming with strings was always a mess and produced a rich bounty of b
by WalterBright 4y ago
My first programming language was BASIC in the 1970s.
When I learned C in the 1980s, programming with strings was always a mess and produced a rich bounty of bugs. When initially designing the D programming language, I resolved that D wouldn't be any good until D did strings as easy as BASIC did.
And so strings are easy and bug free in D, and have become a great strength of D. Thanks to BASIC!
- zozbot234 4y agoBASIC uses garbage collection for its strings. But an ownership approach as found in Rust can give you strings that are almost as easy-to-use as BASIC's, without involving the complexity of a GC.