enso-org / enso

Hybrid visual and textual functional programming.
https://enso.org
Apache License 2.0
7.31k stars 317 forks source link

Application with explicit `default` value #8480

Open kazcw opened 6 months ago

kazcw commented 6 months ago

Passing the special value default as an argument when applying a function should cause the argument's default value to be used, as in the spec.

I recall some discussion of the semantics (probably on pivotal, where I can't access it now) where someone (@jdunkerley?) said that using default as an identifier (as the libs currently do in several places) should remain legal, and the special behavior of default only applies if the builtin isn't shadowed by a binding.

kazcw commented 6 months ago

@JaroslavTulach I'll assign this to you to triage