[squeak-dev] The Inbox: Sound-dtl.67.mcz

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Wed Dec 11 11:06:16 UTC 2019


> I think so, now I don't know if it should be called #/// (obviously I got used to that).

I can imagine that people who knew #\\\ before get confused. However, I did not, so for me, it looks fine:
#/ - simple divide
#// - divide to integer
#/// - divide to float

> (a / b) asFloat is definitely not good, because you get the Fraction there...
Of course. :-)

Best,
Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Stéphane Rollandin <lecteur at zogotounga.net>
Gesendet: Mittwoch, 11. Dezember 2019 12:01:33
An: squeak-dev at lists.squeakfoundation.org
Betreff: Re: [squeak-dev] The Inbox: Sound-dtl.67.mcz

> Interesting tool, I find myself struggling about unexpected fractions
> too often :) Do you think might be interesting for Trunk?

I think so, now I don't know if it should be called #/// (obviously I
got used to that).

I have it implemented in Collection, Float, Number and Point.

> And by the way, is [a / b asFloat] preferable to [a asFloat / b] or [(a
> / b) asFloat]?
(a / b) asFloat is definitely not good, because you get the Fraction
there...

Stef

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191211/db235a48/attachment-0001.html>


More information about the Squeak-dev mailing list