by kens · 1y ago · 0 comments
I don't know if I could tell you with confidence the proper way to get a string length in any language. Is it a global function or an object method or property? Is it length or count or size? I have to look it up or rely on intellisense every time. I do too much bouncing between languages.
Well, I know it in BASIC. Len().
They don't even have a main() any more, it's great
def main(): # code
The dunder syntax you see around isn't required.
(obviously it's not but it is super nice that main in Rust is just:)
fn main() {
}