Christoffer Lerno

Results 1210 comments of Christoffer Lerno

Note that it is not particularly hard to write a macro that takes a compile time list and reverses it for reverse foreach

@carlosdaniel26 is reverse iteration required explicitly? Is not `$for` sufficient?

As we talked about before on the discord, this is currently not planned. I would like to keep the compile time meta language to be as simplistic as possible, which...

So something like: ```c $for $i = 0; $i < 10; $i++: $if $i > CONST: $goto LABEL; $endif $endfor $label LABEL: ```

```c $switch $a: $case int: $b[$j++] = 1; $goto NEXT; $case double: $label NEXT: $b[$j++] = foo(); $endswitch; ```

There are problems with the semantics of this. Consider the following two: ```c $for var $i = 0; $i < 3; $i++: { int a = 0; $if @foo($i) ==...

You always need to call those trailing arguments with a named parameter. This is because otherwise default parameters would not make sense: ```c3 fn void print(int... nums, int num =...

1. Use the .py script to create the msvc_sdk folder. 2. `echo -e "import std::io;\nfn void main()\n{\nio::printn(\"Hello world!\");\n}" | c3c compile - ` should now work.