newtype in addition to typedef?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

newtype in addition to typedef?

sledorze
Hi!
I wonder how much effort it would be to extend the concept of typedef and to prevent cohercition.

Sometimes; it seem just too heavy weight to rely on boxing a value in a class just to prevent cohercition risks..

eager to know about it.

Stephane