Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] null = 1; io.print(null); // null
    [Joshua Thijssen, NoxLogic] that would not make sense much
    [Joshua Thijssen, NoxLogic] void = 1; io.print(void); // would be a syntax error
    [Joshua Thijssen, NoxLogic] as you can use void only at the LHS of an assignment expression
    Matīss
    @Addvilz
    or you could make void special, and anything that gets assigned to void gets deleted :D
    that would be rather interesting construct
    void var;
    void = var;
    result = var unlinked
    hahaha
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] var.unset(); // can't use var after this
    [Joshua Thijssen, NoxLogic] that already exists..
    [Joshua Thijssen, NoxLogic] but I think using a special variable to "eat up" tuples might work..
    Matīss
    @Addvilz
    well.. that feels rather awkward
    delete var;
    unset var;
    why not something like that?
    first, a method call to modify pointer to object self seems rather wrong
    second, any linters will have to account for this special method call
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] hmz..
    [Joshua Thijssen, NoxLogic] makes sense..
    [Joshua Thijssen, NoxLogic] main reason was to keep the amount of keywords low
    [Joshua Thijssen, NoxLogic] but no other reasons actually
    Matīss
    @Addvilz
    but, if I may
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] things like these aren't really well thought out :simple_smile:
    Matīss
    @Addvilz

    exterminate var;

    can we have this? :D

    or
    obliterate var;
    Classy
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] i'd prefer unset :simple_smile:
    Matīss
    @Addvilz
    yep, its either unset or delete
    I really have no preference. But obliterate is definitely my favorite.
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] comma separated import list?
    [Joshua Thijssen, NoxLogic] now, i have things like:
    ```
    [Joshua Thijssen, NoxLogic] import os; import io;
    [Joshua Thijssen, NoxLogic] but it would be nice to have: import os,io ?
    [Joshua Thijssen, NoxLogic] import os,io;
    Matīss
    @Addvilz
    and then import vendor.something.lib.superDuperClassName, vendor.something.lib.booClassName, io, os, vendro.booBoo;
    Does not look as nice with as with short names :)
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] yeah..
    [Joshua Thijssen, NoxLogic] btw.. th webserver is actually working :simple_smile:
    [Joshua Thijssen, NoxLogic] still need to do many fixes.. but it's there.. :simple_smile:
    Matīss
    @Addvilz
    neat ;)
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] allright!
    [Joshua Thijssen, NoxLogic] much is working.. just a few simple thing that need to be fixed / changed / thought out..
    [Joshua Thijssen, NoxLogic] trying to get "import io, os;" working.. but got some bisons to fight
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] functional!
    [Joshua Thijssen, NoxLogic] import io as baz from saffire, os as bar;
    baz.println(bar.cwd());
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] https://github.com/saffire/saffire-docs
    Joshua Thijssen
    @jaytaph
    [Joshua Thijssen, NoxLogic] I've added this issue and really like to get some input from others.. I can't get them to be right