OxL Reference

kw inline

Contextual keyword — before for (§15.1)

The list of words: §1.4

Syntax

ebnf
For         = [ Label ":" ] [ "inline" ] "for" [ "await" ] Pattern "in" Expr [ "where" Expr ] Block ;

Grammar: App. A

Defined in

Examples

oxl
comptime fn toCsvRow<T>(x: &T) -> String {
  var out = String.new()
  inline for f in reflect(T).fields where f.visible {
    out.push("{x.[f]},")
  }
  out
}

— 15.2 Reflection

Related diagnostics

comptime-error, not-comptime

See also