News for hackers. Stuff that matters.
Re:VP of InfoSec at InVision on secure code development [audio] by archgoon on Friday March 22, 2019 @01:35PM (#19464844)
Right; I'm trying to understand the difference between this and the "units of measure" approach the grandparent was referencing.

(To be clear, your latter point is referring to things like 'dangerouslySetInnerHTML' in react?)

https://reactjs.org/docs/dom-elements.html#dangerouslysetinn...

Re:VP of InfoSec at InVision on secure code development [audio] by pcwalton on Friday March 22, 2019 @03:39PM (#19466121)
There isn't a difference, really. Inheritance is one way of implementing "units of measure".
Re:VP of InfoSec at InVision on secure code development [audio] by pvg on Friday March 22, 2019 @06:44PM (#19467651)
There are practical differences, though, such that it's often not implemented by subclassing string.