Re: How to specify an object that can be mutable or immutable

Immutability and read-only are different. An immutable object is one that
is guaranteed to not change. In your case, a DOMRectReadOnly can change ---
if it's actually a DOMRect. You just can't change it through the
DOMRectReadOnly interface.

This would be more clear if we called it DOMRectImmutable; it would be odd
to have DOMRect extend DOMRectImmutable, because a DOMRect isn't immutable.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w  *
*

Received on Thursday, 26 September 2013 11:13:42 UTC