You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
iterate and loop have 'moral equivalent' examples that use the names of the old function arguments
the loop example should have a return statement at the end similar to iterate
they also use one letter variable names. full variable names provide additional clarity (example from docs recently)
finally thoughts on renaming the while option to condition or something similar? while being a language keyword breaks syntax highlighting (you can see this in the api page) and prevents this kind of functionality:
constwhile=(x: number)=>x>5;// ^ ERROR "'while' is not allowed as a variable declaration name."Effect.loop(1,{ while, ...otherOptions});
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
while
option tocondition
or something similar?while
being a language keyword breaks syntax highlighting (you can see this in the api page) and prevents this kind of functionality:The text was updated successfully, but these errors were encountered: