Join Nostr
2025-03-17 20:34:15 UTC
in reply to

Axel Rauschmayer on Nostr: I’d like to hide implementation details, so I’d do: (Looking at the code right ...

I’d like to hide implementation details, so I’d do: https://www.typescriptlang.org/play/?#code/JYOwLgpgTgZghgYwgAgJIgVCBbC4D2UyA3gFDLKgIAUAlAFzIBu+wAJqQL6kwCuGYYPhDJMEOJHRjcBKACZqCXlCzhkAXmQAGBmgxYZYQiXLIsYZSLIUKVOiZs2lKvGADUbgNymKnADSm3NxAA

(Looking at the code right now, I realize that I should change the interface because with only .inc():void there is no way to retrieve the current counter. But that doesn’t change the basic challenge.)