fa/doc/md/ELIPSIS.md
Ari Archer 4cb2129f53
... keyword
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-07-14 05:24:07 +03:00

424 B

Elipsis (...) in fa

It's just like a compile-time nop, it does nothing, produces no code, just filler

include 'std/std.fa'

fun main
    ...
    %EXIT_SUCCESS %exit
end

#main

What is this even useful for you ask?

  1. It makes it nice to write code examples
  2. Making blocks empty in a more syntactically pretty way:
-- Weird
0 if end

-- Less weird
0 if ... end
  1. Stop asking question pls thx