Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: passing a set of numbers to a function Date: Thu, 04 Feb 2016 15:38:02 +0000 Organization: A noiseless patient Spider Lines: 31 Message-ID: <87r3gso59h.fsf@bsb.me.uk> References: <19679ed0-c594-4f7e-817c-a72bd5c10411@googlegroups.com> <22041181.SJtjrm8m6U@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="2553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/eKvtdGXBMoAvwvjWi2wdneZ7wT+sjwtI=" Cancel-Lock: sha1:KpgvcQnyNUgK+tp5AkofEvi7K0k= sha1:q+R/LZ5IYsppVPiNPP4G7T25bcA= X-BSB-Auth: 1.03f734e56ccf26f008da.20160204153802GMT.87r3gso59h.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:29527 John Harris writes: > On Tue, 02 Feb 2016 11:18:31 +0100, Thomas 'PointedEars' Lahn > wrote: > >>Stefan Ram wrote: >> >>> In a JavaScript program, we cannot write expressions whose >>> values are sets, we only can write expressions whose >>> values are instances of an /implementation/ of a set. >> >>Like the built-in Set type. >> >>> The nature of these values depends on the chose of a >>> method to implement sets. Since it is difficult or impossible >>> to write a general implementation that implements all >>> properties of the mathematical concept, […] >> >>It may be difficult, but how did you get the idea that it would be >>impossible? > > I think he may be referring to the difficulty of implementing infinite > sets. A computer program can only implement small finite sets (small > relative to a googolplex). Computer programs can implement infinite sets though only very few of them (even fewer, compared to how many there are, than for finite sets). -- Ben.