Comment

Comment by systems

Julia is not a scripting language, or in other word, Julia scoping rule are not scripting friendly

currently if in a file i have

    local s = 0

    for i = 1:10
        t = s + i
        s = t
        println("$s")
    end

    println("$s")
and I execute this file, I will get an error

    ERROR: LoadError: UndefVarError: s not defined
parent systems 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton