JuliaPluto/Pluto.jl

`local function` works, but leads to multiple definitions error

Geschlossen

#3.545 geöffnet am 12.05.2026

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Julia (329 Forks)batch import
good first issue

Repository-Metriken

Stars
 (5.295 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

A cell in pluto:

begin
    local function f(x)
        x^3
    end
    f(2)
end

This runs as expected and f is not available outside the begin-block, but if another cell also defines local function f(), I still get a Multiple definitions for f error.

Contributor Guide