futurescript
futurescript copied to clipboard
Allows function names with postfix ? or !
Use ? to indicate function returning boolean
admin?: x -> x.role = 'admin'
admin? user
Use ! to indicate function with side effect
write-user!: user ->
write-file user
write-user! current-user