<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>김 용묵의 절대공간 - 블로그: C의-for-each-in-키워드에 달린 최근 댓글/트랙백 목록</title>
		<link>http://moogi.new21.org/tc/</link>
		<description>철도를 명절 때에나 떠오르는 4대 교통수단 중 하나로만 아는 것은, 예수님을 사대성인· 성인군자 중 하나로만 아는 것과 같다.</description>
		<language>ko</language>
		<pubDate>Fri, 12 Mar 2021 08:12:32 +0900</pubDate>
		<generator>Textcube 1.7.8 : Con moto</generator>
		<image>
		<title>김 용묵의 절대공간 - 블로그: C의-for-each-in-키워드에 달린 최근 댓글/트랙백 목록</title>
		<url>http://moogi.new21.org/tc/attach/1/1404861358.jpg</url>
		<link>http://moogi.new21.org/tc/</link>
		<width>220</width>
		<height>165</height>
		<description>철도를 명절 때에나 떠오르는 4대 교통수단 중 하나로만 아는 것은, 예수님을 사대성인· 성인군자 중 하나로만 아는 것과 같다.</description>
		</image>
		<item>
			<title>김진님의 댓글</title>
			<link>http://moogi.new21.org/tc/796#comment3732</link>
			<description>C#에만 있는 문법인 줄 알았는데 C++에서도 쓸 수 있었군요. 배열 순회도 될 텐데, C#에서는 배열의 배열int[2][3]과 2차원배열int[2,3]을 구별하니까 그 영향이 있을 것 같네요.
자바에도 이게 있는데 코드를 깔끔하게 만들어 주기도 하지만, 엉뚱한 인덱스 변수를 쓰거나 값이 배열 범위 바깥으로 벗어나는 사태를 원천봉쇄한다는 점이 좋더군요.</description>
			<author>(김진)</author>
			<guid>http://moogi.new21.org/tc/796#comment3732</guid>
			<comments>http://moogi.new21.org/tc/796#comment</comments>
			<pubDate>Sat, 16 Feb 2013 12:01:55 +0900</pubDate>
		</item>
		<item>
			<title>사무엘님의 댓글</title>
			<link>http://moogi.new21.org/tc/796#comment3733</link>
			<description>오랜만에 뵙네요. ^^
네, 아주 C#스러운 문법이죠. 아주 안전하고 편리하긴 하나, 남발하면 나의 C++ 코드도 점점 MS 컴파일러에 종속될 것 같습니다.
그나저나 C#은 배열의 배열과 다차원 배열을 모두 표현할 수 있는 게 마치 Ada 언어와 비슷하다는 생각이 들었습니다. ^^</description>
			<author>(사무엘)</author>
			<guid>http://moogi.new21.org/tc/796#comment3733</guid>
			<comments>http://moogi.new21.org/tc/796#comment</comments>
			<pubDate>Sat, 16 Feb 2013 19:33:32 +0900</pubDate>
		</item>
		<item>
			<title>김진님의 댓글</title>
			<link>http://moogi.new21.org/tc/796#comment3737</link>
			<description>찾아보니 C++11표준에 이게 있었네요. gcc나 clang에서는 이런 형식으로 쓰더군요:
DATA container[N];
for (auto elem : container) {
    do_with(elem);
}
표준이니 앞으로는 모든 컴파일러에서 지원하겠네요.^^</description>
			<author>(김진)</author>
			<guid>http://moogi.new21.org/tc/796#comment3737</guid>
			<comments>http://moogi.new21.org/tc/796#comment</comments>
			<pubDate>Mon, 18 Feb 2013 01:08:45 +0900</pubDate>
		</item>
		<item>
			<title>사무엘님의 댓글</title>
			<link>http://moogi.new21.org/tc/796#comment3738</link>
			<description>보충 설명에 감사드립니다. ^^
C++에서 그런 문법을 정식 도입하려면 저렇게 기호를 쓰지 each, in 같은 거추장스러운 영단어 나열을 쓰지는 않을 겁니다. 그건 C++의 철학이 아니라 생각됩니다.
다만, for의 한참 다음에 ; 이 나오느냐 : 이 나오느냐를 계속 토큰을 살펴봐야 전통적인 for인지 새로운 for인지 파악이 될 테니, 파싱은 좀 어려울 것 같습니다.</description>
			<author>(사무엘)</author>
			<guid>http://moogi.new21.org/tc/796#comment3738</guid>
			<comments>http://moogi.new21.org/tc/796#comment</comments>
			<pubDate>Mon, 18 Feb 2013 10:00:26 +0900</pubDate>
		</item>
	</channel>
</rss>
