Closed FilipToth closed 3 years ago
{ function evaluateProposal(👎count : int, 👍count : int, name : string = "test") : bool { if (👍count > 👎count) { print("Proposal " + name + " passed by a " + tostring(👍count) + " to " + tostring(👎count) + " margin") return true } print("Proposal " + name + " did not pass!") return false } evaluateProposal(2, 3, "Add support for nested functions?") }
PS: Yes, this isn't the cleanest implementation, but hey, I'm 🥱...
Closes #60
Syntax
PS: Yes, this isn't the cleanest implementation, but hey, I'm 🥱...
Closes #60