plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


plum-std/Err.plum
module std
import std/Bool
import std/Number
import std/Str

# This is used to represent an error value across the language
trait Err =
  code() -> Int
  msg() -> Str
  cause() -> Option