6 comments
stefanos829 days ago
The only thing I would like to see changing is C-style type casting: `(int)myage`
...for some reason, I can't stand this syntax! I find it visually intrusive lol! But if we could allow something like `int(myage)`, it makes it clearer, to me at least.
lerno9 days ago
It works visually poorly with things like `int*(ptr)` and `int[2]*(arr)` though.
stefanos829 days ago
Yeah, I just came here to write "on the other hand though...what about types, such as `(int*)myage`?" and got irritated with myself lol!
I guess I can define my own way of casting with a macro, `castAs(int *, myage);` and that should work just fine.
Read the full thread on Hacker News →
Related stories
- Hacker News · 2 points · 2 days ago
- The Verge · 0 points · 8 days ago
- Hacker News · 6 points · 1 day ago
- Hacker News · 1 points · 2 days ago
- Twinkleplop – plop some twinkle in your code (ultrafast syntax highlighting)twinkleplop.pngwn.atHacker News · 1 points · 8 days ago
- Hacker News · 1 points · 8 days ago