Uli Kusterer on Nostr: I used to be annoyed by HyperTalk making me always repeat the function/control ...
I used to be annoyed by HyperTalk making me always repeat the function/control structure name,
on mouseUp
wait 10 ticks
if the mouse is down then
answer “It's a double click!”
end if
end mouseUp
but now I've come into the habit of marking the closing brackets in longer scopes (like the class in Swift or, more commonly namespaces in C++) with what it’s for:
namespace Foo {
. . . // C++ classes
} // namespace Foo
Code editors should auto-add that information to closing braces.
on mouseUp
wait 10 ticks
if the mouse is down then
answer “It's a double click!”
end if
end mouseUp
but now I've come into the habit of marking the closing brackets in longer scopes (like the class in Swift or, more commonly namespaces in C++) with what it’s for:
namespace Foo {
. . . // C++ classes
} // namespace Foo
Code editors should auto-add that information to closing braces.