News for hackers. Stuff that matters.
Re:Sweet.js – Hygienic Macros for JavaScript by btown on Wednesday July 05, 2017 @12:36AM (#14700002)
The Law of Demeter doesn't always apply neatly, especially when you're introspecting JSON sent over the wire and you don't have a "class" with object oriented behavior for each sub object (at best, they're strongly typed). And the runtime overhead AND verbosity of a function may not be ideal, with the string parsing required in lodash and the awkward syntax of the curried function. Something that compiles natively in a DRY way to a && a.b ... would be used widely imo.

There are no comments on this comment yet.