|
|
|
|
|
by justinpombrio
499 days ago
|
|
No it's not. I'd guess you're imagining a type signature like this one? void effect:Network my_function_to_connect_to_server() {
...
}
I mean a type signature like this one: void my_function_to_connect_to_server(Network network) {
...
}
Where there's absolutely nothing special about the Network type, except that (i) it has no constructor, and (ii) nothing in the Java language lets you talk to a network without it. All of this is expressible with Java's type system today. |
|
See how there's the Network right there on the type?