OxL Reference

kw dynamic

Reserved keyword

The list of words: §1.4

Syntax

ebnf
Dynamic     = "dynamic" Ident "{" { Field } "}" ;

Grammar: App. A

Defined in

Examples

oxl
dynamic Limits {
  rps: u32 = DEFAULT_RPS
  newSearch: Flag = Flag.off
}

let l = Limits.get()
if current > l.rps.get() { throttle() }
for await v in l.rps.changes() { limiter.set(v) }
if l.newSearch.on(for: ctx.caller) { newSearch(q) } else { oldSearch(q) }

— 14.2 Dynamic configuration

Related diagnostics

unknown-type

See also