What is the difference between the ExternalFn
and Fn
expressions?
#1021
Answered
by
lpil
CrowdHailer
asked this question in
Questions & support
-
I've been working under the (i assume) incorrect assumption that the difference here relates to whether the functions are public or not. I've just discovered a public field so can't work out what ExternalFn vs Fn means. https://github.com/gleam-lang/gleam/blob/main/src/erl.rs#L189-L201 |
Beta Was this translation helpful? Give feedback.
Answered by
lpil
Apr 9, 2021
Replies: 1 comment
-
Some doc comments could help here for sure |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lpil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fn
isfn main() { do_stuff() }
whileExternalFn
isexternal fn main() -> Int = "module" "function"
.Some doc comments could help here for sure