News for hackers. Stuff that matters.
Re:Scala – 1 Star – Would Not Program Again by lmm on Monday December 02, 2013 @04:54AM (#6832741)
Scala doesn't make a distinction between operators and methods, and Java has always supported unicode in method names, so they have to be possible for compatibility if nothing else. I think if used carefully, with discipline, they can make code more readable and ultimately more maintainable - e.g. for doing set algebra it's nice to be able to have ∪ and ∩ methods. But yes, if you want to shoot yourself in the foot with them it's very easy.
Re:Scala – 1 Star – Would Not Program Again by joeygibson on Monday December 02, 2013 @06:48AM (#6833102)
I showed an example of using Unicode operators in a presentation I gave to the Atlanta group back in 2010. It doesn't say it in the slide, but when I gave the talk, I explained that while it sounds like a neat idea, you should probably avoid doing this. You can see the slide here, where I used a Delta as an operator slideshare.net/slideshow/embed_code/2923973?startSlide=9