NEWTON

NEWTON


Popular tags

    Implicit Arguments in Cairo

    Asked

    6 months ago

    4

    views


    0

    What are implicit arguments in Cairo? When would you use them instead of normally passing in arguments to a function?

    This question was originally posted on Triality

      cairocairo-lang

    1 answers

    0

    Implicit arguments are something nobody likes (or wants to use) but are currently required to be explicitly written. This will change in future versions of Cairo (https://community.starknet.io/t/truly-implicit-arguments/491/5).

    Basically they are internal book keeping for the compiler / Cairo VM. They're used to track the internal memory pointers across function calls. Without them, the compiler wouldn't know how/where to continue executing code after a function returns.

    You can read more details here: https://www.cairo-lang.org/docs/how_cairo_works/builtins.html#implicit-arguments

    This answer was originally posted on Triality

    answered

    6 months ago

    Your answer

    NEWTON

    NEWTON