Hacker News new | ask | show | jobs
by stefanos82 69 days ago
Ew...that looks so ugly! LOL!

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

1 comments

<> 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.