tag:blogger.com,1999:blog-19626531.post1443561943050130013..comments2023-11-02T08:32:39.646+01:00Comments on Ola Bini: Programming Language Synchronicity: Operator Overloading in RubyOla Binihttp://www.blogger.com/profile/15793488672952593953noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-19626531.post-10177520357311939342007-10-08T11:18:00.000+02:002007-10-08T11:18:00.000+02:00Funny how you say operator overloading is not usef...Funny how you say operator overloading is not useful in statically typed languages, and then go on listing features (Xpath-like operators, function-collection equivalence) that Scala has out of the box.<BR/><BR/>Scala has some powerful DSL creation abilities, some of which would not be possible without static typing (i.e. user-defined control expressions) in a C-like syntax.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19626531.post-55753224130942520912007-10-08T03:56:00.000+02:002007-10-08T03:56:00.000+02:00The bit about static typing doesn't make sense to ...The bit about static typing doesn't make sense to me as it stands. I'm guessing from the line noise bit you meant to say "explicit typing"?GMhttps://www.blogger.com/profile/07637024036051297719noreply@blogger.comtag:blogger.com,1999:blog-19626531.post-72102323816518575642007-10-07T19:38:00.001+02:002007-10-07T19:38:00.001+02:00casino niagarapechanga casinobarbary casinocasino ...<A HREF="http://www.geocities.com/vip6k2004/niagara/ " REL="nofollow">casino niagara</A><BR/><A HREF="http://www.geocities.com/vip6k2004/pechangacasino/ " REL="nofollow">pechanga casino</A><BR/><A HREF="http://www.geocities.com/vip6k2004/barbary/ " REL="nofollow">barbary casino</A><BR/><A HREF="http://www.geocities.com/vip6k2004/casinoMorongo/ " REL="nofollow">casino morongo</A><BR/><A HREF="http://www.geocities.com/vip6k2004/WAGERc/ " REL="nofollow">wager casino</A><BR/><A HREF="http://www.geocities.com/vip6k2004/soaringEagle/ " REL="nofollow">soaring eagle casino</A><BR/><A HREF="http://www.geocities.com/vip6k2004/WynnCasino/ " REL="nofollow">wynn casino</A><BR/><A HREF="http://www.geocities.com/vip6k2004/RAMA/ " REL="nofollow">rama casino</A><BR/><A HREF="http://www.geocities.com/vip6k2004/VenetianCasino/ " REL="nofollow">venetian casino</A><BR/><A HREF="http://www.geocities.com/vip6k2004/foxwoodscasino/ " REL="nofollow">foxwoods casino</A><BR/><BR/><A HREF="http://giveflowers.topcities.com/floralArrangement/ " REL="nofollow">floral arrangement</A><BR/><A HREF="http://giveflowers.topcities.com/flowerBULB/ " REL="nofollow">flower bulb</A><BR/><A HREF="http://giveflowers.topcities.com/flowerSEED/ " REL="nofollow">flower seed</A><BR/><A HREF="http://giveflowers.topcities.com/wildflower/ " REL="nofollow">wild flower seed</A><BR/><A HREF="http://giveflowers.topcities.com/funeralFLOWER/ " REL="nofollow">funeral flower</A><BR/><A HREF="http://giveflowers.topcities.com/GROWER/ " REL="nofollow">flower grower </A><BR/><A HREF="http://giveflowers.topcities.com/flowerCenterpiece/" REL="nofollow"> flower centerpiece</A><BR/><A HREF="http://giveflowers.topcities.com/PerennialFlower/ " REL="nofollow">perennial flower</A><BR/><A HREF="http://giveflowers.topcities.com/tulip/ " REL="nofollow">tulip flower</A><BR/><A HREF="http://giveflowers.topcities.com/FlowerBlossom/ " REL="nofollow">flower blossom</A><BR/><A HREF="http://giveflowers.topcities.com/FTDflower/ " REL="nofollow">ftd flower </A><BR/><BR/><A HREF="http://pillsforhealth.100megsfree5.com/Citalopram/ " REL="nofollow">сitalopram</A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/penicillin/ " REL="nofollow">penicillin</A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/anafranil/ " REL="nofollow">anafranil</A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/Cephalexin/ " REL="nofollow">cephalexin </A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/biaxindrug/ " REL="nofollow">biaxin </A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/dietFahrenheitPILL/ " REL="nofollow">diet fahrenheit pill </A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/acne/ " REL="nofollow">acne solution </A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/adultACNE/ " REL="nofollow">adult acne </A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/ayurvedicMedicine/ " REL="nofollow">ayurvedic medicine </A><BR/><A HREF="http://pillsforhealth.100megsfree5.com/antidepressant/ " REL="nofollow">anti depressant </A><BR/><BR/><BR/><A HREF="http://cheapvitamins.100webspace.net/vK/ " REL="nofollow">vitamin k </A><BR/><A HREF="http://cheapvitamins.100webspace.net/vitaminShoppe/ " REL="nofollow">vitamin shoppe </A><BR/><A HREF="http://cheapvitamins.100webspace.net/VITe/ " REL="nofollow">vitamin e </A><BR/><A HREF="http://cheapvitamins.100webspace.net/B12/ " REL="nofollow">vitamin b 12</A><BR/><A HREF="http://cheapvitamins.100webspace.net/vitaminb12/ " REL="nofollow">vitamin b12 </A><BR/><A HREF="http://cheapvitamins.100webspace.net/vitaminworld " REL="nofollow">vitamin world </A><BR/><A HREF="http://medicineforyou.100webspace.net/medicineCabinet/medicineCabinet/ " REL="nofollow">medicine cabinet</A><BR/><A HREF="http://medicineforyou.100webspace.net/newenglandMedicine/ " REL="nofollow">new england journal of medicine </A><BR/><A HREF="http://medicineforyou.100webspace.net/OccupationalMedicine/ " REL="nofollow">occupational medicine </A><BR/><A HREF="http://medicineforyou.100webspace.net/healthCAREnaming/ " REL="nofollow">health care naming </A><BR/><BR/><BR/><A HREF="http://lottoluck.freewebspace.com/pennsylvania/ " REL="nofollow">pennsylvania lottery </A>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19626531.post-54469892317672900882007-10-07T19:38:00.000+02:002007-10-07T19:38:00.000+02:00cymbaltaaugmentin clonidineCoregbiaxinclindamycin...<A HREF="http://uk.geocities.com/bobdrugus/cymbaltaLIFE/ " REL="nofollow">cymbalta</A><BR/><A HREF="http://uk.geocities.com/bobdrugus/augmentinPILL/ " REL="nofollow">augmentin </A><BR/><A HREF="http://uk.geocities.com/bobdrugus/clonidineClonidinehydrochloride/" REL="nofollow"> clonidine</A><BR/><A HREF="http://uk.geocities.com/bobdrugus/CoregINFO/ " REL="nofollow">Coreg</A><BR/><A HREF="http://uk.geocities.com/bobdrugus/biaxineffect/ " REL="nofollow">biaxin</A><BR/><A HREF="http://uk.geocities.com/bobdrugus/clindamycinORAL/ " REL="nofollow">clindamycin </A><BR/><A HREF="http://uk.geocities.com/bobdrugus/Definitionazithromycin/" REL="nofollow"> azithromycin</A><BR/><A HREF="http://uk.geocities.com/bobdrugus/adviceZyrtec/ " REL="nofollow">zyrtec </A><BR/><BR/><A HREF="http://hometown.aol.com/medicationpills0/ProzacDOCTOR/" REL="nofollow"> prozac </A><BR/><A HREF="http://hometown.aol.com/medicationpills0/risperdalHOME/ " REL="nofollow">risperdal</A><BR/><A HREF="http://hometown.aol.com/medicationpills0/descriptionPaxil/ " REL="nofollow">paxil</A><BR/><A HREF="http://hometown.aol.com/medicationpills0/newsMobic/" REL="nofollow"> mobic</A><BR/><A HREF="http://hometown.aol.com/medicationpills0/SynthroidHEALTH/ " REL="nofollow">synthroid</A><BR/><A HREF="http://hometown.aol.com/medicationpills0/LasixDescription/ " REL="nofollow">lasix</A><BR/><A HREF="http://hometown.aol.com/medicationpills0/prevacidEFFECT/ " REL="nofollow">prevacid</A><BR/><A HREF="http://hometown.aol.com/medicationpills0/UltracetTramadol/" REL="nofollow"> ultracet</A><BR/><A HREF="http://hometown.aol.com/medicationpills0/vicodinflower/" REL="nofollow"> vicodin</A><BR/><A HREF="http://hometown.aol.com/medicationpills0/VerapamilDrug/ " REL="nofollow">verapamil</A><BR/><BR/><A HREF="http://www.freewebtown.com/alapills/VALACYCLOVIRValtrex/ " REL="nofollow">valtrex</A><BR/><A HREF="http://www.freewebtown.com/alapills/takeZantac/ " REL="nofollow">zantac</A><BR/><A HREF="http://www.freewebtown.com/alapills/Adderallsupport/ " REL="nofollow"> adderall</A><BR/><A HREF="http://www.freewebtown.com/alapills/DopamineHELP/ " REL="nofollow">dopamine</A><BR/><A HREF="http://www.freewebtown.com/alapills/Singulair/ " REL="nofollow">singulair</A><BR/><A HREF="http://www.freewebtown.com/alapills/StratteraLOLO/ " REL="nofollow">strattera</A><BR/><A HREF="http://www.freewebtown.com/alapills/toprolXL/ " REL="nofollow">toprol</A><BR/><A HREF="http://www.freewebtown.com/alapills/TopamaxAbout/" REL="nofollow"> topamax</A><BR/><A HREF="http://www.freewebtown.com/alapills/VALACYCLOVIRValtrex/ " REL="nofollow">valtrex</A><BR/><A HREF="http://hometown.aol.com/xxxPILLS/amoxicillinPILL/" REL="nofollow"> amoxicillin</A><BR/><A HREF="http://hometown.aol.com/xxxPILLS/PlavixheaRT/ " REL="nofollow">plavix</A><BR/><A HREF="http://hometown.aol.com/xxxPILLS/SYSTEMoxycodone/ " REL="nofollow">oxycodone</A><BR/><A HREF="http://hometown.aol.com/xxxPILLS/Inderaltruth/ " REL="nofollow">inderal</A><BR/><A HREF="http://hometown.aol.com/xxxPILLS/buynexium/ " REL="nofollow">nexium</A><BR/><A HREF="http://hometown.aol.com/xxxPILLS/Neurontinforwoman/ " REL="nofollow">neurontin</A><BR/><A HREF="http://de.geocities.com/alensyfashion/skateboardingSHOESone/" REL="nofollow"> skateboarding shoes</A><BR/><A HREF="http://de.geocities.com/alensyfashion/bootFORwork/ " REL="nofollow">work boot</A><BR/><A HREF="http://de.geocities.com/alensyfashion/WedgeSandalsLOLO/ " REL="nofollow">wedge sandal</A><BR/><A HREF="http://de.geocities.com/alensyfashion/adidasGIFTshoes/ " REL="nofollow">adidas shoes</A><BR/><A HREF="http://www.geocities.com/fashionshopalensia/rackroomBOOM/ " REL="nofollow">rack room shoes</A><BR/><A HREF="http://www.geocities.com/fashionshopalensia/KEENshoesbest/ " REL="nofollow">keen shoes</A>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19626531.post-29755855901601800652007-10-07T10:23:00.000+02:002007-10-07T10:23:00.000+02:00It would be nice if Ruby in new versions supported...It would be nice if Ruby in new versions supported the following behaviour:<BR/><BR/>when some object is used as boolean expression (e.g. "if foo then"), call to_b (or to_boolean) on it. This would allow creating special proxy objects that could represent e.g. false expression (for now Ruby considers all non-nil-or-false objects to be true). Default implementation for Object#to_b would be 'true', False and Nil classes - 'false'. That would maintain backwards compatibility.<BR/><BR/>The other thing, it would be nice if foo( ... ) would transform into variable-or-method lookup and then call to value.call( ... ). I don't see a reason why this should be hardcoded.Anonymoushttps://www.blogger.com/profile/00272049513122973998noreply@blogger.comtag:blogger.com,1999:blog-19626531.post-33914955376042329472007-10-06T23:28:00.000+02:002007-10-06T23:28:00.000+02:00I'm glad Ruby allows to overwrite the == operator,...I'm glad Ruby allows to overwrite the == operator, in Java I'm always in danger to write s == "bla" when I <BR/>mean equals.<BR/><BR/>Python allows you to overwrite the () operator, so that in every place where a function is expected, you can also provide a class with the __call__ method, which can be used to track state.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19626531.post-72077058780733492002007-10-06T23:04:00.000+02:002007-10-06T23:04:00.000+02:00The && and || operators are not overloadable, main...The && and || operators are not overloadable, mainly because they provide "short circuit" evaluation that cannot be reproduced with pure method calls.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19626531.post-79971367630431858972007-10-06T21:54:00.000+02:002007-10-06T21:54:00.000+02:00As far as I know, C# offers operator overloading w...As far as I know, C# offers operator overloading with quite a success despite its static typing.Konradhttps://www.blogger.com/profile/14388784103552736162noreply@blogger.comtag:blogger.com,1999:blog-19626531.post-75441550125290292482007-10-06T20:19:00.000+02:002007-10-06T20:19:00.000+02:00I agree that operator overloading in Ruby is gener...I agree that operator overloading in Ruby is generally a good thing. However, I think that your contention that the unary not operator (!) should be overridable is a bad thing. Ruby considers all objects except nil and false to be true for the purpose of conditionals. Allowing an object to decide that it is false (if !obj ...) but not true would invalidate all sorts of otherwise reasonable logic about objects. The only case for overloading not I can think of is making RSpec a tad more readable.<BR/><BR/>I rather like the way Scala handles operators; namely that they're just method calls with a precedence determined by the first and last character. Such a view fits well with everything being an object, and Scala's type-system allows them to compile very efficiently in the "non-overloaded" case as well.Anonymousnoreply@blogger.com