체스::리플달기 (캐릭터 * ㅅ, 숫자 ㄴ)
{
면 (ㄴ >= 최고리플번수)
용 (; 최고리플번수 <= ㄴ;)
면 (ㅅ == 무 아니면 문자 길이 (ㅅ) == 0)
도라오기;
면 (리플 [ㄴ]! = 없음)
리플 지우기 [ㄴ];
문자 복사 (리플 [ㄴ], ㅅ);
}
}
What's interesting about Korean alphabet is that you could read and write the code above within a few days of memorizing the Korean alphabet system. Even a non-native Korean speaker can read the above example (you could read about 70% of it as most words are phonetic spellings of english words like Chess = 체스. and write it without speaking a word of Korean if you knew the consonants and alphabets. There's very little Korean word in that example above.Good luck with writing it in Chinese (memorize all 4000 characters) or Japanese (Kanji, Katakana, Hirakana a clusterfck). If you're gonna build an Asian programming language, Korean alphabet's flexibility makes it easier if not more efficient to express developer intention.
Majority of the english words have been phonetically typed in Korean, there's very little semantic Korean meaning.
I have a translation of "Design of the Unix Operating System" in Chinese, and take great comfort in the fact that I can still get the gist of all the source code listings--even despite the comments in Chinese.
I admire the simplicity of the grammar in Chinese (from the year I took of it in college), but honestly I find logographic languages are kind of gross.
EDIT:
Fine, fine, I admit it: a language with millenia of cruft is totally reasonable to use as the way of persisting the cruftiest programming language in the world.
Indeed, the same years of hard study that are required to write and read Chinese literately should be added onto the same years of study required to write and read C++ reliably.
This is such a comically bad and obtuse idea I think we should propose it as the next draft standard.
EDIT2:
Look, explain your downvotes (in the language of your choice!). My opinion is simply that alphabetic languages (here exemplified by English) are superior to logographic languages--mostly because they require knowing fewer characters.
I may be grossly misunderstanding Chinese here; as claimed, my schooling in it is limited.
Finally, with an appropriate method, it doesn't have to take years to learn enough characters to write and read literately, I can read Japanese at a high school level, and I've been at it for a year and a half.
As I understand it, there are three alphabets: kanji (lots of Chinese characters), katakana, and hiragana. The latter two are used to spell out the syllables of words, in some sense acting like an alphabetic language. Kanji seems to have a thousand or two characters in use, whereas katakana and hiragana have around fifty.
Beyond looking up stroke numbers and radicals, I found dictionary usage for Chinese characters somewhat hard--English lets you basically do a very easy binary search on a word (start at most significant character, find section, move to next most significant character, etc.).
You can do the same thing with dictionaries in Japanese or Chinese, though it works best if you use a dictionary that lets you handwrite in the characters (it helps a lot if you learn your radicals and stroke orders well, so that you can easily write characters you don't know).
"if you use a dictionary that lets you handwrite in the character"
I'm unfamiliar with any paper dictionary with that capability.
You end up with much lower population literacy rate than countries with alphabetic systems. ex) China at 92% vs Korea at 99%.
Hangul was created 600 years ago to counter the difficulties faced by ordinary citizens attempting to memorize the Chinese alphabets. Hangul also by far one of the more exotic alphabet system. This video sums it up nicely:
² empty where one might expect void, character, for, string, &c.