Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # macroexpand 이 함수는 [[매크로]] 형식을 받아 매크로가 그것을 변환하면 결과 코드가 어떻게 보일지 알려준다. ### 예제 <code clojure> (when (= 2 2) (println "It is four!")) ;; 화며네 "It is four!"가 출력된다. </code> [[macroexpan-1]] 함수를 사용하면 코드가 어떻게 확장되는지 알 수 있다. [[macroexpan-1]] 함수를 사용할 때는 확인하려는 코드에 [[인용 기호]] (')를 붙여야 한다. 이렇게 하면 코드는 실행되지 않고 데이터로 처리된다. <code> (macroexpand-1 '(when (= 2 2) (println "It is four!"))) ;=> (if (= 2 2) ; (do (println "It is four!"))) </code> open/macroexpand.txt Last modified: 2024/10/05 06:15by 127.0.0.1