Reputation
372
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 6
Newest
 Nice Answer
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 230 votes cast
May
28
comment What is the etymology of the “dot” operator for string concatenation?
I don't think it's unreasonable for newcomers of a language to expect arithmetic operators to behave like they do in arithmetic. If something can be added, I would expect it can also be subtracted, but it's not at all intuitive to me what subtracting two strings would mean. (Of the languages that implement subtraction on strings, do all behave the same way?)
May
28
comment What is the etymology of the “dot” operator for string concatenation?
I wonder if we think + is unsurprising is because of its use in other languages. If there were no + and we only had an add function, would it be as intuitive?
May
28
comment What is the etymology of the “dot” operator for string concatenation?
@MichaelT - This wasn't meant to be Perl-specific. I just couldn't find a reference to the dot being used for string concatenation in any languages older than Perl. I've edited the question to (hopefully) reflect that.
Jan
26
comment Do-It-Yourself project suggestions to sharpen programming skills or learn a new language
+1 for recommending an awesome book!
Feb
5
comment Best book, articles and literature on unit testing
+1 for xUnit Test Patterns!