stdlib: Inference engine caught some type errors! Also added some hot garbage.

This commit is contained in:
2025-07-18 05:34:03 -04:00
parent 8732cca3f9
commit 0f9044bb3e
9 changed files with 129 additions and 55 deletions

19
stdlib/std/io.cl Normal file
View File

@@ -0,0 +1,19 @@
//! The IO module contains functions for interacting with
//! input and output streams
use super::str::str;
/// Immediately causes program execution to stop
#[builtin = "panic"]
fn panic(..args) -> !;
/// Prints whatever you give it
#[builtin = "print"]
fn print(..args);
/// Prints whatever you give it, followed by a newline
#[builtin = "println"]
fn println(..args);
/// Debug-prints a thing, returning it
#[builtin = "dbg"]
fn dbg(arg) -> _ arg