Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
spec:om-apis [2012/01/26 16:05]
tabatkins
spec:om-apis [2014/12/09 15:48] (current)
Line 8: Line 8:
   - it is much longer to type than a string like "​translate3d"​   - it is much longer to type than a string like "​translate3d"​
   - the name of the constant is different than the name of the function it corresponds to, while a string can be the same.   - the name of the constant is different than the name of the function it corresponds to, while a string can be the same.
-  - simply printing or storing the value reveals an opaque integer, which can't be translated back into a transform type without testing against every constant+  - simply printing or storing the value reveals an opaque integer ​like ''​13''​, which can't be translated back into a transform type without testing against every constant
   - long experience shows that, given the choice of using a named constant or an integer, authors will end up using the integer form instead, often due to cargo-cult "speed improvements"​   - long experience shows that, given the choice of using a named constant or an integer, authors will end up using the integer form instead, often due to cargo-cult "speed improvements"​
  
 
spec/om-apis.txt · Last modified: 2014/12/09 15:48 (external edit)
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki