Showing posts with label Japanese. Show all posts
Showing posts with label Japanese. Show all posts

Thursday, November 09, 2006

Overloaded terms

In case I haven't mentioned it here on this blog, I am learning Japanese. Why? I guess I figure I'll only be a student for a couple more years, and I wanted to take advantage of that by learning something I probably couldn't learn on my own. Why Japanese? I love learning languages, and there's a remote chance I could move there someday, so I might as well learn it. I also have a huge set of Chinese brushes at home, and it'd be nice to actually understand some of the characters that I script.

Yesterday was our first day of Kanji. Until now, we've been communicating in written form using only the two phonetic alphabets of Japanese, Hiragana and Katakana. Kanji is a pictograph-based alphabet, and it's one reason why Japanese is so hard to learn. Japanese newspapers restrict themselves to using "only" 2000 kanji, but there are many, many more.

The word for Sunday is "Ni-Chi-Yo-U-Bi." The Kanji for "Ni-Chi" and "Bi" is the same, but pronounced differently based on context. This freaked out many of the kids in the class.

I say "kids" because they are all undergrads, and I'm actually older than everyone, including the teacher. It's very humbling, since I'm also one of the dumbest kids in the class. I do fine on the exams, but I can barely talk, and I sound something like Benjy in Faulkner's The Sound and the Fury.

And yet, finally! I was so happy to learn that something from computer science could be reused in my Japanese class. Consider the following snippet of code in VBA:

if (a = b) then
a = b
end if

That's right, the same symbol is used for testing equality and for variable assignment. The term is "overloaded operator" and it's particular use can only be determined based on context. So yesterday's Japanese class seemed obvious to me (for once) thanks to science.