4 ms·
Really wish there was more momentum on adding a safe access operator. Even Ruby has that now, it's disappointing that we still don't have it in JS.
by segphault 9y ago
Really wish there was more momentum on adding a safe access operator. Even Ruby has that now, it's disappointing that we still don't have it in JS.
- p4lindromica 9y agoyou mean you wish you had an Option monad, right? ;-)
- pas 9y agohttps://github.com/saneyuki/option-t.js https://github.com/saneyuki/option-t.js :)
- arve0 9y agoWe have deep-value and deep-reduce easily available: https://www.npmjs.com/package/deep-value https://www.npmjs.com/package/deep-value https://www.npmjs.com/package/deep-reduce https://www.npmjs.com/package/deep-reduce
- Lordarminius 9y ago> Even Ruby has that now Are you implying that Ruby is a backward language ? :/
- esamatti 9y agoIt's at Stage 1 https://github.com/tc39/proposal-optional-chaining https://github.com/tc39/proposal-optional-chaining and babel plugin is coming here https://github.com/babel/babel/pull/5813 https://github.com/babel/babel/pull/5813