news.volyx.in

What’s New in ES2019 (blog.tildeloop.com)

433 points by davman · 2638 days ago · 398 comments on HN

Article summary

The article discusses new features in ES2019, including the flatMap method. The comments reveal that the article likely highlights the benefits and use cases of these features. However, the exact content of the article is not available. The discussion focuses on the implications of these features on JavaScript development.

Main themes

  • ES2019 features
  • JavaScript development
  • mutation and immutability
  • language design
  • TypeScript and static typing

What commenters say

  • Some JavaScript methods mutate the array, while others do not, which can be confusing and lead to errors. The language's lack of strong immutability guarantees makes it difficult to ensure data integrity. JavaScript's design principles and consistency are important for developer productivity and code safety. The use of libraries like Immer.js and Ramda can help enforce immutability in JavaScript. TypeScript and other static typing systems can provide better guarantees of immutability and code safety. The distinction between mutating and non-mutating methods in JavaScript is not always clear or consistent. Object.freeze can be used to create immutable objects, but it has limitations and is not a comprehensive solution.