Considering options or: How to implement an Optional type in Go
anaminus.github.io1 pointsby Anaminus0 comments
git clone -q https://github.com/paaatrick/playball.git
cd playball
echo $(du -bs package-lock.json | cut -f1) / $(du -bs src | cut -f1) | bc -l local foo
do
local bar = 42
-- Same as `foo = function() ... end`, so this sets the local foo variable.
function foo()
return bar
end
end
Because Lua has no significant whitespace, it can be made to look like some kind of specific syntax: local foo do
local bar = 42
function foo()
return bar
end
end
Though I think this is too clever, so I like to insert a semi-colon to make it clear what is happening: local foo; do
local bar = 42
function foo()
return bar
end
end <LICENSE>+GOAWAY
This license must never be enforced.
I'm sure some verbose laywerspeak is required to make it ironclad, if it even works at all.
https://anaminus.github.io/langding/
om would fall under "Yes, must scroll".