Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/website/page.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,11 @@ pub fn frequently_asked_questions(ctx: site.Context) -> fs.File {
html.text("Will Gleam have metaprogramming?"),
]),
]),
html.li([], [
html.a([attr.href("#why-does-not-gleam-have-function-overloading")], [
html.text("Why does not Gleam have function overloading?"),
]),
]),
html.li([], [
html.a([attr.href("#how-is-message-passing-typed")], [
html.text("How is message passing typed?"),
Expand Down Expand Up @@ -1901,6 +1906,21 @@ discussion",
]),
html.text("."),
]),
html.h2([attr.id("why-does-not-gleam-have-function-overloading")], [
html.text("Why does not Gleam have function overloading?"),
]),
html.p([], [
html.text("Function overloading is type of polymorphism known as "),
html.em([], [html.text("ad hoc polymorphism")]),
html.text("."),
]),
html.p([], [
html.text(
"Gleam's design philosophy is about simplicity and explicitness, because of this we favour
just having multiple functions with obvious titles than one with many overloads. This makes you
choose specific implementation over genral one.",
),
]),
html.h2([attr.id("does-gleam-have-mutable-state")], [
html.text("Does Gleam have mutable state?"),
]),
Expand Down