ctietze,
@ctietze@mastodon.social avatar

I experimented with Non-Copyable types in Swift.

I really like that I can enforce borrowing and consuming.

It's a tough sell to inline 'traits' from what used to be protocol, though.

I need to think a bit more on this -- because for this particular type which I don't want to live in multiple places, an underlying reference may change a pointer somewhere.

Maybe I need a different abstraction to have the thing 'expire' properly.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • cubers
  • Youngstown
  • ngwrru68w68
  • ethstaker
  • slotface
  • PowerRangers
  • hgfsjryuu7
  • khanakhh
  • kavyap
  • tsrsr
  • InstantRegret
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • Leos
  • rosin
  • tacticalgear
  • thenastyranch
  • Durango
  • osvaldo12
  • vwfavf
  • modclub
  • everett
  • GTA5RPClips
  • cisconetworking
  • normalnudes
  • tester
  • anitta
  • All magazines