functors 예문
- Instances of such classes are called functors or function objects .
이러한 클래스들의 인스턴스들은 함수자 또는 함수 객체라고 불린다. - Final remark: functors are made to help programmers write correct programs, not to improve performance.
마지막 주석: 펑터는 성능 향상이 아니라, 프로그래머가 정확한 프로그램을 작성하는 것을 돕기 위한 것이다. - Functors are probably one of the most complex features of OCaml, but you don't have to use them extensively to be a successful OCaml programmer.
펑터는 아마 Ocaml의 기능 중 가장 복잡한 것일 테지만, 성공적인 OCaml 프로그래머가 되기 위해 펑터를 광범위하게 써야할 필요는 없다. - Since both functors and function pointers can be invoked using the syntax of a function call, they are interchangeable as arguments to templates when the corresponding parameter only appears in function call contexts.
함수자와 함수 포인터 모두 함수 호출의 문법을 사용해서 유발될 수 있기 때문에, 이것들은 상응하는 파라미터가 오직 함수 호출 문맥에서만 보일 때 인자로서 교체될 수 있다.