3 ms·
Sounds interresting! Could you provide a link? Can't seem to find anything relevant.
by strictfp 11y ago
Sounds interresting! Could you provide a link? Can't seem to find anything relevant.
- TheLoneWolfling 11y agoFor a quick example, take C: typedef rad_f float; typedef degree_f float; Although in C there's no way that I know of to do implicit conversion between the two. The closest thing I've found to what I mean is C#'s implicit cast system: http://nathan.ca/2014/02/type-rich-programming/ http://nathan.ca/2014/02/type-rich-programming/
- strictfp 11y agoThanks for the response. I was more thinking about languages which have mechanisms for this though. What did you mean by extendable types?