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
I have the following design in mind, but the compiler says
thread.kk(1, 7): error: Type task cannot be declared as a value type since it is recursive.
Code:
named effecttask<a>ctljoin() :(a,thread)ctlcancel() :threadctlis_done() :boolnamed effectthreadctlrun(task :()-> a, thread:thread) :task<a>// consume the thread// drop the effect to destroy the threadeffectthreadspawnerctlfork() :thread
In some other languages there is "unique" type (with multiplicity of 1) that cannot be cloned. I want the achieve the same with Koka.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following design in mind, but the compiler says
Code:
In some other languages there is "unique" type (with multiplicity of 1) that cannot be cloned. I want the achieve the same with Koka.
Beta Was this translation helpful? Give feedback.
All reactions