Hacker News new | ask | show | jobs
by lerno 69 days ago
Or `cast{int*}(myage)`
1 comments

Ew...that looks so ugly! LOL!

How about `cast<int*>(myage)`?

<> is the worst choice for generic syntax in a language with C-like syntax. It's not surprising that it was introduced by C++. It is very ambiguous.

Some short examples: `foo<1> * a` – is this `(foo < 1) > (a)` or `(foo<1>) a`? What about `foo<1>>2>a`? Is that `(foo<1> > 2) > a` or `foo<(1>>2)> a`?

Just horrid.