shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

272
active users

#swiftlang

3 posts3 participants0 posts today

I don't get this:

People say "you shouldn't make your Foo protocol itself Sendable most likely, but instead require Foo&Sendable in dependent code" one minute, and the next propose "use an actor, you just need to make all of Foo's methods async for actor isolation support"

Continued thread

SK8 has some clever ideas, like VirtualType (basically retroactive protocol conformance on classes you don’t own like in #SwiftLang), but it also does some things AppleScript luckily rolled back.

You create new handlers using a dialog panel, like you'd name a new file. That's slow. Also, a handler in SK8 looks like:

on mouseDown of me (a Board)
drag me with live
end mouseDown

So they threw out the English syntax right from the start (vs. AppleScript, where they just don't enforce it)

3/6

In Swift, is there an accepted "deinit()" practice (e.g., free up any allocated resources) for structs when they should be destroyed, or just create some "cleanup()" function that can be called? I'm thinking along the lines of releasing network resources or GUI elements.

Or is this a use-case for a class?