Hi all,
Is there any literature on types in ATS such as &int?
>> int?
fun ret_zero() : int =
let
fun initize(x : &int? >> int) : void =
x := 0
var ret: int
val () = initize(ret)
in
ret
end
I know that linear types are well-grounded in linear logic, but I
know of no language that has this feature, and I cannot find any
reference to it while skimming Girard's work...
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/4aba91ab-220c-ddc5-544c-f8c0a85abd27%40iohk.io.
Thanks! What happens when you have
fun foo(x: &T1? >> T2): T3
rather than
fun foo(x: &T1 >> T2): T3
?
How does one handle uninitialized values? Is that just the ?
modality?
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLr_MWMvrytD1UX%2Be63FfyCP4mb%2Br8G67xR2gm30s3AtNA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/9c490b6b-7f2a-68c2-444c-4e5d9e47ad6d%40iohk.io.