Re: Type-checking performance
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 02, 2005
- 456 views
Patrick Barnes wrote: > What are your thoughts on optimising types that do nothing but return > 1, basically alias them to the parent type? > While from a technical standpoint it does nothing, from a semantic > point of view it can be very helpful, as we can see what is expected > in a parameter without a performance hit. I don't have any special optimization for this, and I don't see much demand for it, since you can always say "without type_check". Any optimization takes time and has the risk of introducing a bug. I need to concentrate my efforts on areas where I can make a big difference, with little risk, and it will help a lot of programs. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com