Hacker News new | past | comments | ask | show | jobs | submit login

> - := for assignment is similar enough to what is used in math for definition, so that languages like Pascal use it

I think its cppfront that is taking the approach of `:=` being a declaration with the type being inferred (ie shorthand for `: Type =`). Reading up on that has made me the most ok with applying this to functions (which I see coming up more these days) but I think i still prefer functions having a more distinct look as I process them differently when reading. Now, cppfront's approach to types I think is bonkers, making critical details hard to find except maybe through convention.

https://github.com/hsutter/cppfront

> <> for inequality is something SQL got right

Maybe I'm not recognizing the biases of my own learning background but this never reads right to me vs "not equal" / `!=`.

> - concise keywords like `fn`

In other discussions, it sounded like Graydon had an upper limit of 4 characters for keywords

https://www.reddit.com/r/rust/comments/13oemrg/question_abou...

For me, I had a "whoosh" moment for `fn` and always thought it a weird abbreviation, completely overlooking "fn" keys on laptops.




My very first programming language had fn, so maybe my love for it is just a form of nostalgia.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: