DEV Community

Discussion on: What was your win this week?

Collapse
 
fennecdjay profile image
Jérémie Astor

I worked a lot on Gwion !
I removed cryptic symbols (eg: no more #(0,0) but Complex(0,0) instead),
added some kind of constructors for these kind of structures (Unpack() for instance rebuilds the ast of its arguments).
I add a problem with vararg.start end vararg.end, but now varargs can be copied and there is a statement for its loop:

fun void test(...) {
  varloop vararg {

  }
}

And much more...

I'm currently implementing structs users side:

#! this is a comment
#! let's define a struct
struct S {
  int i;
  float f;
 #!  ...
}

such structs are like object (they can also have static variables and all kinds of functions) except they are stocked as is, whereas an object stores then in a data field.