Difference between function's no return type and Promise(Never, Void) #455
-
Hello, In the following example shown at https://www.mint-lang.com/
the functions to be invoked on Based on the documentation at https://www.mint-lang.com/guide/reference/built-in-types
These functions just sets the defined state using the Note: I am new to functional programming paradigm so please bear with me if I have asked any silly question. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi 👋 I believe these two points can help you better understand what is going on:
A type of a function must have at least one type parameter which is the return type so it cannot be
Yes, that is correct.
There are no silly questions 🙂 let me know if I can help with anything else 👍 |
Beta Was this translation helpful? Give feedback.
Hi 👋
I believe these two points can help you better understand what is going on:
next { }
expression isPromise(Never, Void)
because it mutates the state asynchronously.