Jeff Forcier on Nostr: nprofile1q…rhvyl I'm still quite new to it myself, but I got the sense that String ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq0fmsw3ukhmqnnsjmalfekl6j4cucxvfl50he9dmqcna36a99nf6smrhvyl (nprofile…hvyl) I'm still quite new to it myself, but I got the sense that String vs str vs arrays of bytes/int8s/whatever, was either a language weak point or a “I guess I'm dumb" weak point.
Like, code that would be absolutely trivial in Python is a bunch of slightly weird looking "gotta toss this into a string, then do Things to it, then call .as_str() for reasons”. I grok about half of why that's necessary (mutability, heap vs stack, etc).
Probably much easier for C heads?
Like, code that would be absolutely trivial in Python is a bunch of slightly weird looking "gotta toss this into a string, then do Things to it, then call .as_str() for reasons”. I grok about half of why that's necessary (mutability, heap vs stack, etc).
Probably much easier for C heads?