News for hackers. Stuff that matters.
Re:GorillaScript by protomyth on Sunday July 07, 2013 @09:36AM (#6001966)
I would say that & is a fine choice (much better than +) for a concatenation operator. It allows numbers to be built like strings in an interesting way and keeps the meaning of the & consistent. It really is past times that every language needs to conform to the choices made by C.
Re:GorillaScript by 30thElement on Sunday July 07, 2013 @10:07AM (#6002040)
+ has problems as string concatenation, but that doesn't make & a good choice. We still use a lot of C-ism's because people are used to them, and any deviations from C-like behavior, which at this point could be called "common behavior" just increases the learning curve and the cost of a context switch.

Personally, I like Perl's period(.) for string concatenation, but I think it can too easily get lost in the line, especially for more complex stuff.

     $foobar = "foo" . $bar->{'bar'}
Re:GorillaScript by protomyth on Sunday July 07, 2013 @12:51PM (#6002508)
Period has a general meaning of ending a sentence. At this point in our history, people willing to clear the deck of C-ism should be encouraged. I think the learning curve is worse when folks imitate C for no reason other than computer tradition as opposed to building something that feels tied together. We ditched a lot of older habits with C, we should continue the path.
Re:GorillaScript by gkop on Sunday July 07, 2013 @04:25PM (#6003305)
& is not only a bitwise operator, but also a set arithmetic operator in many languages (Ruby and Python, for examples).