2008년 10월 11일 토요일

ruby의 case when 구문은 fall through 형태로 쓸 수 없다.

루비에서 다른 언어의 switch 대응이 case when 이라고 해서,

늘 하던 식으로 해봤다가 깨달은 사실.

http://en.wikipedia.org/wiki/Switch_statement#Ruby

파이썬도 안되는군...

댓글 없음:

댓글 쓰기