모듈

모듈 (Modules)

모듈 관련 개념을 처음 접하면 문서가 여기저기로 연결되어 있어서 어디서부터 읽어야 할지 갈피를 못 잡을 수 있어요. 이 문서는 "모듈이 뭔지, 어떻게 찾고 설치하고, 만들고, 배포하는지" 흐름대로 관련 문서를 정리해주는 길잡이예요. 각 섹션을 따라가다 보면 필요한 페이지로 자연스럽게 이어져요.

출처: Raku Documentation — Modules

본문

모듈 만들고 사용하기 (Creating and using modules)

모듈은 보통 하나의 소스 파일 또는 소스 파일들의 묶음으로, Raku 요소들을 노출해요. 모듈은 전형적으로 패키지에요 — 클래스, , 그라마, 서브루틴, 그리고 때로는 변수까지 포함하죠. 여기서 주의할 점이 하나 있어요. Raku에서 _module_은 module 키워드로 선언하는 패키지 종류 하나를 가리키기도 해요 (Module Packages와 아래 예시 참고). 하지만 이 페이지에서는 대부분 "모듈"이라는 말을 네임스페이스 안의 소스 파일 묶음이라는 의미로 쓰고 있어요.

모듈 사용하기 (Using Modules)

개요 (Introduction)

Using Modules: An Introduction 참고.

모듈 찾고 설치하기 (Looking for and installing modules)

Using Modules: Finding and Installing 참고.

모듈 로드하고 사용하기 (Loading and using modules)

Using Modules 참고.

모듈 만들기 (Making Modules)

용어와 기본 구조 (Terminology and basic structure)

Making Modules 참고.

사용 방식에 따른 모듈 구성 (How to organize your module with regard to its usage)

Making Modules 참고.

모듈 배포하기 (Distributing modules)

Distributions: An Introduction 참고.

모듈 준비하기 (Preparing the module)

Distributions: The Configuration and Structure 참고.

모듈 작성에 도움을 주는 도구 (Tools that help with module authoring)

Distributions: The Tools 참고.

모듈과 배포판 테스트하기 (Testing modules and a distribution)

Distributions: Testing 참고.

모듈 업로드하기 (Uploading the module)

Distributions: Uploading 참고.

모듈 개발 논의하기 (Discussing module development)

Distributions: An Introduction 참고.