Hash :
08729c30
Author :
Thomas de Grivel
Date :
2025-07-14T17:09:37
wip pvar
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
123
end
block :abc do
return_from :abc 1
123
end
block :abc do
return_from :abc 1 + 1
123
end
a = fn (x) { return x * 2 ; 3 }
a(1)
a = fn (x) { return (x * 2)
3
}
a(1)
a = fn (x) { return x * 2 ; 3 }
a(3)
a = fn (x) { return (x * 2) ; 3 }
a(3)
a = fn (x) { return x * 2
3
}
a(3)
quote x * 2; 3
a = fn (x) {
return x * 3
1
}
a(2)
a = fn (x) {
return_from :a x * 3
1
}
a(3)
block :abc do
123
return 2
1
end
block :abc do
123
return_from :abc 2
1
end
block :abc do
if 2 > 4 do
return -1
else
return 1
end
end
f = fn (x) {
if (x > 4) do
return -1
else
return 1
end
}
f(4)
f(5)
unwind_protect {
unwind_protect({
puts("a")
1
}, puts("b"))
}
block :a unwind_protect(do
puts("a")
return_from :a 1
2
end
, puts("b")
)
ncpu
defmodule Test do
defstruct [hello: "World !",
id: 1337]
end
%Test{}
t = %Test{}
type(test.id)
type(t.id)
defmodule Test do
defstruct [hello: "World !",
id: (S64) 123]
end
t
type(t.id)
t = %Test{}
type(t.id)
1
1 + 1
+
defmodule
KC3.Op
do
defstruct [sym: :+, callable: (Callable) ?]
end