it felt very confusing to use write as println
This commit is contained in:
parent
daab50d54c
commit
e48bda7e98
3 changed files with 3 additions and 3 deletions
|
|
@ -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{}},
|
||||||
|
|
|
||||||
2
era3.ang
2
era3.ang
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -29,4 +29,4 @@ while x < fibonacci_numbers.length() {
|
||||||
x = x + 1
|
x = x + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
write("")
|
println("")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue