Git Product home page Git Product logo

qutie_rust's People

Contributors

sampersand avatar

Watchers

James Cloos avatar  avatar  avatar

qutie_rust's Issues

TODO: Float

Currently, i32 is the datatype that's being used. I wanna change it to f64 or something, so there's one unified data type

Try and figure out how to get constants with macro calls

ie:

   /* constants */
   let sigil_sym = rc_obj!(SYM; "sigil");
   let rhs_sym   = rc_obj!(SYM; "rhs");
   let lhs_sym   = rc_obj!(SYM; "lhs");
   let prior_sym = rc_obj!(SYM; "priority");
   let func_sym  = rc_obj!(SYM; "func");

they should all be constants, but rc_obj! uses Rc::new which isn't allowed for const or static

Clean up while loop

While loop is awful. look at this:

loop {
      match cond.clone().qt_exec(env){
         Ok(obj) => match obj.qt_get(rc_obj!(NUM; 0), AccessType::Stack, env) {
            Ok(obj) => if to_type!(BOOL; obj, env) {
                          cast_as!(body, Universe).clone().exec(env);
                       } else {
                          break
                       },
            Err(err) => panic!("While condition returned error: {:?}", err)
         },
         Err(err) => panic!("Howto error?: {:?}", err) 
      }
   }

issue with .=

this:
foo?.c = 1 + 2;
behaves like this:
foo?.c = 1, + 2;

update get_arg! to take multiple parameters

replace this:

   let false_arg = get_arg!(args, env, false_s_sym; Stack, 
                   get_arg!(args, env, false_l_sym; Locals, rc!(boolean::NULL)));

with this:

   let false_arg = get_arg!(args, env, false_s_sym; Stack => false_l_sym; Locals => rc!(boolean::NULL));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.