marqdo

03-positional-callok

structure/03-positional-call.mq.md

Structure

fn · h1main
comment

Positional args bind in declaration order (no who= needed):

call> greet Marqdo
comment

Named form still works:

call> greet who=World
fn · h2greet
who
call> print text=Hello `who`!
Functions
Variables

No bindings

Execution

Hello Marqdo! Hello World!

Source

---
title: Positional arguments
description: Bind by parameter order; named form still works
---

# main

Positional args bind in declaration order (no `who=` needed):

> greet Marqdo

Named form still works:

> greet who=World

## greet
    + `who`

> print text=Hello `who`!

Variable