Hi there guys, maybe a silly question here, is it possible to pass a function as an argument of another function in FunC? Like a callback function, an equivalent in C would be something like this:
char *example_function(char *val, void *fc_cb(char *))

Where fc_cb would be the callback function passed as an argument in the definition.

Aug 14, 2023, 6:58 PM
Yes. The type is called cont, or (int -> slice).
Aug 14, 2023, 7:01 PM
Nice, I started hating the language, now I'm kind of loving it a bitπŸ˜‚πŸ˜‚. Thanks btw
Aug 14, 2023, 7:02 PM

Β© 2024 Draquery.com All rights reserved.