Missed opportunities
Missed opportunities
Posted Jun 10, 2013 13:35 UTC (Mon) by renox (guest, #23785)In reply to: Missed opportunities by tjc
Parent article: Little things that matter in language design
> most notably with type casts
Which have an AWFUL notation in C-like language: let's make a very *dangerous* operation non-greppable, yeah fun!
That said, your issue isn't too difficult to fix when you realize that a cast is in fact a two parameters operation: the type name and the object, so this syntax fix your issue I think: cast(T@,p)
or better(?) in C++ like notation cast<T@>(p)
IMHO this is a better way to solve the issue..