Sunday, July 29, 2018

Real-World Uses of Tacit Programming: Part 1 of 2

Introduction

Tacit Programming, also called point-free style, is a way to write functions without specifying the arguments. While functional programming languages have more abilities to leverage this style, there are still two key things you can use point-free style to help with in JavaScript, Python, and Lua that I wanted to cover today. Specifically reducing the amount of arguments for functions, and aiding in composition by writing less code.

The later isn't as powerful in JavaScript as in one where you can define your own operators, such as PureScript or Haskell, but that's ok, it's still helpful. Less code === less to remember and keep track of.



from DZone.com Feed https://ift.tt/2K1ikE0

No comments:

Post a Comment