it felt very confusing to use write as println

This commit is contained in:
Neemek 2026-07-07 23:32:57 +02:00
parent daab50d54c
commit e48bda7e98
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E
3 changed files with 3 additions and 3 deletions

View file

@ -347,7 +347,7 @@ type Call struct {
} }
var DefaultGlobals = map[string]Value{ var DefaultGlobals = map[string]Value{
"write": &BuiltinFunctionValue{ "println": &BuiltinFunctionValue{
"write", // always remember where you come from... "write", // always remember where you come from...
&FunctionSignature{ &FunctionSignature{
[]TypeSignature{&AnySignature{}}, []TypeSignature{&AnySignature{}},

View file

@ -1,6 +1,6 @@
fn double(a: int) -> int { fn double(a: int) -> int {
2*a return 2*a
} }
println(double(2) == 4) println(double(2) == 4)

View file

@ -29,4 +29,4 @@ while x < fibonacci_numbers.length() {
x = x + 1 x = x + 1
} }
write("") println("")