Does it make sense to allow division by zero in a programming language?
In a general purpose language? Probably not. When dealing with aspect ratios? Maybe.
It’s common to have a pane collapse to 0 on one side, and a sensible behavior is the constrained box to also be 0x0. #css
TIL about Swift’s Unmanaged.passUnretained(self).toOpaque() for interacting with C APIs, and about the &+= operator (overflow operator) and its friends. (https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html)
Anyone know how to correctly implement async Publisher + Subscriber in Combine (so pushes instead of pulls)? I have a ThingManager I can subscribe to and it’ll call a closure I provide. Is this the right way? https://gist.github.com/uliwitness/394b308b4aa457293f679560edcdbd5e
Hey, if I have a framework that does iOS 12 stuff, and I want to add one class/extension to it only for iOS 13, which uses 13-only API, can I do that without making the extension its own framework?
Like if #available but around a class?
I make a HyperCard clone at https://stacksmith.org
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!