Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Mark Carroll Newsgroups: comp.programming Subject: Re: python.. Date: Mon, 12 Jan 2015 17:49:12 +0000 Organization: none Lines: 25 Message-ID: <87vbkb51pj.fsf@ixod.org> References: <0af26812-0c8a-4459-a495-f0097939fe5f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="1b3e5cba9e4d07a53741e6f3d1717925"; logging-data="23404"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mZU3nXgDc/7Vq7xbEfg8r" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:Ne51hNkhI81cQQXF9arEao7ErzI= sha1:GGSM8b2+tAhH7Ej4FxCLa9w0SA8= Xref: csiph.com comp.programming:5111 Mok-Kong Shen writes: (snip) > If you have algorithms to implement that need big integers, then Python > is in my personal experience the best language to use, since you can > simply employ the common arithmetic operators. (snip) While I generally agree with the rest of your article, it's worth noting that this feature isn't actually all that unusual: for instance, I mentioned Erlang in this thread, that's just the same: 1> 12312425346256765374684238375938743 * 3248593486436262526624534316562252. 39998064782082472270063499350743119830535735017989634112753098129236 Haskell seems to agree, Prelude> 12312425346256765374684238375938743 * 3248593486436262526624534316562252 39998064782082472270063499350743119830535735017989634112753098129236 and lets you do list comprehensions just as in Python. One thing that pains me in Java is I can't even easily define a function that takes Number x and Number y and returns x + y. -- Mark