20 Dec 2023 |
Angelofdollars | andreasbackx which syntax do you prefer? A:
add = fun(a, b)
return a + b
end
B:
add = |a, b|
return a + b
end | 08:18:42 |
andreasbackx | Neither really but if I was forced to choose, then be. Though why not use Python or another language and have bindings/a library? | 10:33:06 |
andreasbackx | * Neither really but if I was forced to choose, then B. Though why not use Python or another language and have bindings/a library? | 10:33:15 |
Angelofdollars | https://discord.com/channels/925817758334201937/1172148384807784539/1184352633599832074 | 10:33:31 |
Angelofdollars | But for reference, this is how the current syntax looks like:
# Return the nth Fibonacci number that corresponds to 'count'
fibonacci = fun(count)
first = 1
second = 0
i = 0
while i < count do
tmp = second
second = first
first = tmp + first
i = i + 1
end
return second
end
# Return 'num' raised to the 'power'
pow = fun(num, power)
acc = 1
i = 0
while i < power do
acc = acc * num
i = i + 1
end
return acc
end
print(pow(25, 2)) # 625
print(pow(2, 10)) # 1024
i = 0
while i < 10 do
print(fibonacci(i))
i = i + 1
end | 10:34:19 |
Angelofdollars | Does it look readable to you? | 10:34:31 |
andreasbackx | Ish, but itβs another language I would not want to learn | 10:34:47 |
andreasbackx | On tube now btw | 10:34:57 |
Angelofdollars | silly how you guys call train a tube π | 10:35:40 |
uncomfyhalomacro | lol | 10:35:46 |
uncomfyhalomacro | when i read tube, i imagine a toothpaste coming out from the toothpaste tube | 10:36:58 |
uncomfyhalomacro | or poop π© but okay | 10:37:14 |
uncomfyhalomacro | Neither really but if I was forced to choose, then B. Though why not use Python or another language and have bindings/a library?
@angelo.f btw when did we come up with litok | 10:38:07 |
uncomfyhalomacro | i forgot | 10:38:18 |
uncomfyhalomacro | yet i named the language | 10:38:23 |
Angelofdollars | look at logs | 10:51:34 |
Angelofdollars | ![image.png](https://matrix.org/_matrix/media/r0/thumbnail/t2bot.io/1aa13806290fb8d3eb1014fded4a84f3bcc5009a1737425578132242432?height=360&method=scale&width=360) Download image.png | 10:51:52 |
Angelofdollars | november 9 | 10:52:02 |
Angelofdollars | 5 weeks ago | 10:52:11 |
uncomfyhalomacro | hm | 10:52:19 |
shinyzenith | Am I the only one who thought of YouTube before reading Angelo's comment | 11:13:10 |
andreasbackx | Well, the Germans call their the U-Bahn. I think we can all call it differently. Or we'll just call it the underground but that takes too long to say. | 11:53:22 |
shinyzenith | We call it metro | 12:42:07 |
Angelofdollars | we don't have underground trains but we just call it train or MRT (Manila Metro Rail Transit System) | 12:44:17 |
Angelofdollars | or LRT (Manila Light Rail Transit System) | 12:44:32 |
22 Dec 2023 |
| alexcouch joined the room. | 09:02:46 |
| Perigord changed their profile picture. | 11:39:47 |
23 Dec 2023 |
| cypheriel joined the room. | 12:29:38 |
28 Dec 2023 |
| e_tho joined the room. | 19:55:39 |
| e_tho | 20:22:59 |