ramda / repl

The Ramda REPL
34 stars 15 forks source link

Enhancement - Improve "Duplicate declaration" message for Ramda fns #54

Closed seanpoulter closed 6 years ago

seanpoulter commented 6 years ago

When a user declares a variable with the same name as one of Ramda's exports they get an error message that says ramda: Duplicate declaration "<fn>". For users who are new to Ramda, it is not immediately obvious that there's a conflict with one of Ramda's exports.

Proposal

Can we change the wording to say something like:

ramda: Cannot declare "<fn>" that conflicts with "<fn>" already imported from Ramda

If that sounds good, I'm happy to try a PR. Any tips on where to look in the code?

Steps to Reproduce

REPL link: https://goo.gl/68HEdc

CC @judyc

CrossEye commented 6 years ago

It sounds very good. I'm afraid I have no idea where to look, though.

buzzdecafe commented 6 years ago

closed by #55