BooBoo 3 is a big change

Almost or about half of everything will become an expression operator. Almost any builtin function returning a value will become and expression op. So instead of:

number n
vector_get v n 10

You do:

number n
= n (vector_get v 10)

This allows easier inlining for function calls etc.

However not everything will be treated this way. Like vector_add/vector_set/etc remain the same, it’s mainly things returning a value that benefit from it.

Comments

4 responses to “BooBoo 3 is a big change”

  1. tremblin Avatar
    tremblin

    A few things will even be removed! Everything in the main docs under Arithmetic except = doesn’t need to be duplicated.

  2. tremblin Avatar
    tremblin

    All or most string functions, all math, etc will be done this way.

  3. tremblin Avatar
    tremblin

    For that matter I might remove vector_get anyway, but it’s just an example.

  4. tremblin Avatar
    tremblin

    To manage functions returning more than one value, I can make them return a vector and add e.g. set x y z (cd_model_line_segment …) it just does = x [result 0] = y [result 1] …

Leave a Reply to tremblin Cancel reply

Your email address will not be published. Required fields are marked *