News for hackers. Stuff that matters.
Re:Ask HN: Faster than C, simpler than Python, safer than Ru... by avinassh on Saturday March 04, 2023 @10:48AM (#35021643)
how does the scoping works? From the homepage:

    import os

    text := os.read_file('app.log') or {
        eprintln('failed to read the file: ${err}')
        return
    }

    lines := text.split_into_lines()
    for line in lines {
        if line.starts_with('DEBUG:') {
            println(line)
        }
    }
Is lines empty or program exited after the error at `app.log`
Re:Ask HN: Faster than C, simpler than Python, safer than Ru... by amedvednikov on Thursday March 09, 2023 @11:54AM (#35083410)
If there's an error at reading app.log, the error is printed, and the function is returned.

Code after that won't run at all.