Leor said:
In the general case, given potentially large-scale projects (code reviews,
etc), the question of how often casts are used /is/ a real-world situation.
If in your project, you know that the only way you're using casts is the
one way you're using them, then you might not personally have this issue.
(And the "task" in question was rather rhetorical, just to point out the
value of the unique keywords used for new-style casts.)
First off, I just want to re-iterate that I like, advocate for, and use
new_style casts for all situations except the 'trivial' type change
situations I mentioned earlier. That said, please excuse my ignorance
.... my experience has been mostly with (large) applications, but I
really dont see where finding all cats in a large project is a _common_
real world problem.
I would be (honestly) appreciative and enlightened if you would give
me an example of how it would be useful to search on _all_ (non-dynamic)
casts in a large project. (something not too contrived.)
I would be surprised (honestly), but appreciative, if you could give
me a not-overly-contrived example of needing to find all simple numeric
type casts (like those I am 'advocating') in a large project.
Thanx.
[Snip]