Namespaces in Dyalog APL

Опубликовано: 12 Март 2026
на канале: Dyalog
991
30

An introduction to namespaces in Dyalog APL.

00:00 What are namespaces and what are they used for?
00:35 Overview of this video
01:00 Namespaces as a container for APL stuff which prevent name conflicts
01:46 How to create a namespace with the system function ⎕NS and assign names and execute other expressions within it
02:28 Viewing the contents of a namespace with the workspace explorer or ]map user command
03:14 Pass by reference semantics and mutability
05:12 The root namespace # and the session object ⎕SE
06:08 Find the parent of a namespace with ##
06:29 Check if two references point to the same namespace with the match function ≡
06:35 Named and unnamed, anonymous namespaces
07:03 The result of dyadic ⎕NS, the namespace path character vector
07:32 Syntax of ⎕NS with an empty right argument. Creating subnamespaces in a single call.
08:16 Copying contents, code and data, from one namespace into another
09:22 Namespaces references are simple scalars
09:40 Convenient arrays of namespace references
10:40 Organise your application and make it modular
11:56 Namespaces as a dictionary or JSON object
12:24 Passing optional arguments to a function with defaults

--------------------

GET STARTED

Download the latest version of Dyalog:
https://www.dyalog.com/downloads

TAKE PART IN OUR APL COMPETITIONS

THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
https://challenge.dyalog.com

THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
https://forge.dyalog.com/

--------------------

#Namespaces #CodeOrganisation #APL