switchof를 작동 시키려면 왜 typeof를 string으로 형 변환해야합니까?리 볼 스위치 및 유형?
이 작동하지 않습니다
typeof: type? get 'optional
switch typeof [
word! [
print "word"
]
string! [
print "string"
]
]
이 작동 :
typeof: type? get 'optional
switch to-string typeof [
"word" [
print "word"
]
"string" [
print "string"
]
]
REBOL은 간단한 언어이지만 Carl Sassenrath의 주장과는 달리 반드시 쉬운 언어는 아닙니다. :) 간단! = 쉬움. –
다음은 그것이 우아한 언어라고 가정 해 보겠습니다. –