News for hackers. Stuff that matters.
Re:Lenses in Julia by BoiledCabbage on Thursday October 30, 2025 @10:36PM (#45767737)
It's a similar idea to map() but for more complex objects than arrays. When people use "map" in Javascript (or most any other language that supports it) do they do so because "they are terrified of mutability, and are willing to abandon performance?"

Your comment reads like the response of someone who is struggling to understand a concept.

Re:Lenses in Julia by o11c on Thursday October 30, 2025 @11:54PM (#45768245)
Only the get half is `map`-like. In combination it's more like a property descriptor, which is far easier to understand and much more efficient.

And, if it wasn't obvious, it's only the `set` half where lenses suck for performance.