Hacker News new | ask | show | jobs
by paul_reiners 6643 days ago
That's exactly it. Saying that learning a new language is just a matter of learning a new syntax is like saying that an English-speaking, non-German speaker could translate a German text to English by taking a German-English dictionary and going through and translating the words one-by-one. It's not quite as simple as that.
2 comments

Actually, I'd compare that to saying that two languages are the exact same except for some of the words -- that JavaScript is exactly like Java except System.out.print is renamed to document.write. Saying that learning a new language is just the syntax is more like saying that translation between English and German can be done with just a German-English dictionary and a full knowledge of the grammar.

However, just as lambdas cannot be directly translated into languages without lambdas, some languages have unique concepts. For example, the German language has a part of speech called the particle that conveys a general feeling into sentences. While the statement "Er wisst das." could be easily translated with a dictionary and knowledge of conjugation rules into "He knows that," adding a particle to make "Er wisst ja das" could be variously translated as "Of course he knows that," "He obviously knows that," "He most definitely knows that," etc.

I find such comparisons misleading. The differences between natural languages are not at all the same thing as the differences between programming languages. All natural languages have the same expressive power, or at least very close. The existence of the phenomenon of translation proves it. You can take a book in Classical Latin (according to my friend's girlfriend who is a linguist, a very terse language) and its translation into German (typically given as an example of a very verbose language) and the difference in length will be maybe 30% (and frankly, I don't even believe this difference can be accounted for by the greater expressive power of Latin; my guess is it's just that German words are longer on average.)