What is Nostr?
Uli Kusterer /
npub152w…dmy3
2025-02-11 09:40:37

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.
Author Public Key
npub152wsxhryneprgwhlqr2newcm7nllgaq5mw4mt5y6lseternu0dwsp4dmy3