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
5f5d99d 1
module std
73b5e55 2
import std/Bool
ca5fd6f 3
import std/Number
29313cb 4
import std/Str
5f5d99d 5
141de54 6
# This is used to represent an error value across the language
5de508e 7
trait Err =
5f5d99d 8
  code() -> Int
5f5d99d 9
  msg() -> Str
141de54 10
  cause() -> Option