#gleamlang — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #gleamlang, aggregated by home.social.
-
I don't have a strong opinion on if you should use braces:
fn my_func() { … }
or blocks:
fn myfunc() … end
for defining blocks in your programming language, but I have a very strong opinion that if you use braces for blocks then you should not use braces for anything else.Why? Because block scope ought to be easy to differentiate from everything else. This is especially important with when passing anonymous functions around.
Gleam and Lua ar languages that get this right!
#programming #programminglanguages #gleam #gleamlang #lua #lualang