1
0
Fork 0
forked from fun/fun

ROFL, in all examples where a function definition in the code, fun does not support functions actualy... :D

This commit is contained in:
Johannes Findeisen 2025-09-14 01:04:38 +02:00
commit 2f95b49bba
6 changed files with 16 additions and 11 deletions

View file

@ -1,5 +1,7 @@
#!/usr/bin/env fun #!/usr/bin/env fun
fun hello_world() { /*
print("Hello, world!") * Hello world in Fun
} */
print("Hello, world!")

9
fun.fun Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env fun
print("Yay, the playground for having fun... ;)")
number n = 10
print(n)
string s = "Hello, world!"
print(s)

View file

@ -1,3 +1 @@
fun hello_world() { print("Hello, world!")
print("Hello, world!")
}

View file

@ -4,8 +4,6 @@
* Hello, world! * Hello, world!
*/ */
fun hello_world() { print("Hello, world!")
print("Hello, world!")
}
// Bye, world! // Bye, world!

View file

@ -307,4 +307,3 @@ print "Current time: " + now
## 12. License ## 12. License
This document and the Fun language reference are licensed under the Apache License 2.0 This document and the Fun language reference are licensed under the Apache License 2.0

View file

@ -414,4 +414,3 @@ print("Current time: " + now)
## 15. License ## 15. License
This document and the Fun language reference are licensed under the Apache License 2.0 This document and the Fun language reference are licensed under the Apache License 2.0