this post was submitted on 19 Jun 2025
98 points (87.1% liked)
Programmer Humor
36878 readers
106 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
To be honest I always disliked variable declaration without value assignment, so to me both options suck. :)
What about
You can't declare ret inside the brackets
Rust would allow you to
Now you don't have to declare it inside the blocks.
Similarly, Perl lets you say