A Programming Language with static types and algebraic effects.

A Programming Language with static types and algebraic effects.

data Email(name: String, server: String, tld: String)

fun to_string(email: Email) -> String {
    email.name + "@" + email.server + "." + email.tld;
}

fun main() -> Unit {
    print(to_string(Email("john.smith", "example", "com")));
}
Information updated 01/15/20
Note: This entry has not yet been moderated.
View Comments