The counts[input.Text()]++ construct looks pretty familiar, like a hash autovivification in Perl. Was this idea taken from Perl and put into Go?
I've used that trick in MUMPS, too. And I would be quite surprised to be the first one using it in MUMPS, given its decades of history. I did not find that trick in code by the interpreter's manufacturer (Micronetics), and neither did I find it in code written by my ex-coworkers. But yes, I stole the trick from Perl. In fact, my MUMPS code looked a lot like Perl, but with a different kind of "line noise".
Alexander
In reply to Re: Does Go steal from Perl? :-)
by afoken
in thread Does Go steal from Perl? :-)
by reisinge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |