4 ms·
The author argues that callbacks do not necessarily impact code's readability in a negative way. However, he does so while presenting examples in CoffeeScript,
by Xion 14y ago
The author argues that callbacks do not necessarily impact code's readability in a negative way. However, he does so while presenting examples in CoffeeScript, a language where reduction of the usual JS callback boilerplate (`function() { ... }`) is one of the main perks.
In other words, he claims there is no issue by presenting a possible solution to it.
- raganwald 14y agoHis argument is that callback the semantic construct != nested brace hell the syntactic construct. Elm presents a new syntactic construct AND a new semantic construct. His example serves to demonstrate that the syntactic construct by itself is sufficient for many cases, which suggests that the original article might have been better served by being about Elm's syntax instead of bashing on the semantic construct.