Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Joshua Cranmer Newsgroups: comp.lang.java.programmer Subject: Re: Managed-Code Bloat Date: Mon, 06 Jun 2011 20:47:59 -0700 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 7 Jun 2011 03:48:01 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="bAymlyY9SkaJNa8Tz2rerw"; logging-data="21400"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gWgbDWiDeFkm8+rIaEe5YKZYmUCf7pfQ=" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:aezqp6dFk5sfV2YP9fRQlAVpccw= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5053 On 6/6/2011 8:41 PM, Lawrence D'Oliveiro wrote: > In message, Joshua Cranmer wrote: > >> On 6/6/2011 6:38 PM, Lawrence D'Oliveiro wrote: >> >>> In message, Joshua Cranmer wrote: >>> >>>> Both SpiderMonkey and V8 are garbage-collected. >>> >>> Probably same here. >> >> That is not the case. > > So why have a “delete” statement, then? JavaScript objects are basically hashmaps. The delete statement is the JS equivalent of map.remove. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth