question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Would it be possible to lint for x => f(x) and recommend f? There are some circumstances in which these aren’t equivalent but I think they don’t apply if you’re enforcing currying.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
RebeccaStevenscommented, Dec 30, 2020

This is release in version 3.2.0 as an opt-in rule (i.e. it’s not included in the recommended config).

Recommended way to opt-in:

{
  // ...
  "extends": [
    // ...
    "plugin:functional/stylitic"
  ],
  // ...
}

This rule will probably be added to the recommend config in the next major release.

1reaction
RebeccaStevenscommented, Oct 15, 2020

I made a start on this implementing this rule. It seems to be handling the basic case right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Point-Free: A video series on functional programming and the ...
Point-Free is a video series exploring functional programming and Swift.
Read more >
Point-Free (@pointfreeco) · Twitter
We’re taking the week off, so no new episode, but there's plenty to catch up on: We now have 4 episodes in our “Modern...
Read more >
Point-Free - GitHub
A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. Swift 7.7k 801.
Read more >
Pointfree - HaskellWiki
It is a common experience when rewriting expressions in pointfree style to derive more compact, clearer versions of the code -- explicit points ......
Read more >
Tacit programming - Wikipedia
Tacit programming, also called point-free style, is a programming paradigm in which function definitions do not identify the arguments (or "points") on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found