I haven't played with nim for a few months, but only parameters with var will get mutated. I suspect you want to use someone else's cursed function and don't want to poison your blessed code
I see. I know nothing about Nim but I do see in their example they used var when declaring the function. This way seems like it's hidden to the consumer of the function but hopefully editor tooling helps with this.
People who use the "fire in a crowded theater" metaphor clearly don't know where it came from. It was coined by Justice Oliver Wendell Holmes, Jr. in Schenck v. United States.[1] He ruled that it was constitutional to send socialists to prison for distributing leaflets against the draft in WWI.
In the same way that dentists agree that sugared gum is bad for your teeth, economists agree that price gouging laws make everyone worse off.[2] For a concrete example of how price gouging laws led to shortages, read Michael Munger.[3]
As one commented mentioned these "nut allergies" can be psychosomatic, where the mind is literally triggering the physical reactions based purely on expectation.
On the other hand "nuts" including peanuts are typically processed in the same facilities, so cross-contamination is real too.
Agreed. The vast majority of the benefit is simply from learning to use composition over inheritance.
Most applications that aren't games don't need to support things like finding all active objects of a type or maintain many discrete actors executing their own run loops.
But Unity isn't dumping a lot of marketing into talking about the decorator pattern so everyone is jumping right to ECS now.
When performance matters I often find myself yak shaving existing code to basically turn it into structure-of-arrays format (like is required for ECS), if not converting to ECS entirely. The alternatives scale so poorly...
Employees at least get paid, knowledge workers sign over their intellectual property in exchange for a salary. There is no concept of data ownership, but there could be something similar. Imagine companies having to license your data and pay you a stipend or the like.
However, the reality is big tech needs customer data, customer data does not need big tech. So where is the negotiation? How is it possible big tech can pay the same (i.e. service rendered) to all users, where users data is not of equal value?