○
Planned This feature is planned but not yet implemented.
ECOLOGY: User-defined transforms should work like stdlib
Code
// ECOLOGY TEST: User-defined [transform] events should work like stdlib ones
//
// ISSUE: The transform mechanism shouldn't require magic. A user should be
// able to define their own [transform] event and have it work exactly like
// ~for, ~if, ~capture from std/control.
//
// This test captures the intention that transforms are NOT special-cased
// for stdlib - they're a general mechanism.
~import std/io
// User-defined transform event - should work just like stdlib transforms
~[keyword|comptime|transform]
pub tor repeat {
times: i32,
invocation: *const Invocation,
item: *const Item,
program: *const Program,
}
|> std/io:print.ln("Custom transform executed")