Jose M. Valera Reales

Results 87 comments of Jose M. Valera Reales

This is a known feature. On the REPL, `defn` allows you do redefine the same global binding - similar as in Clojure. I am not sure if we want to...

Oh, good spot. Now I get what you mean. Do you mind opening a PR with your proposal, I think that should be correct in order to preserving immutability of...

The thing is that this is also the behaviour wen executing `run`, and I assumed that this shouldn't be possible, right? ![Screenshot 2024-06-17 at 15 20 39](https://github.com/phel-lang/phel-lang/assets/5256287/d5b1f184-fa9b-4dc6-b289-2335d422932a)

Do you mind creating a PR to be able to see the full diff and the CI outcome as well, @t-matsudate ? It's going to be easy to keep track...

@t-matsudate you can commit using the `--no-verify` flag to skip the git hooks > eg: `git commit -m 'your message' --no-verify`

TLDR: I would consider this a "bug" that needs to be fixed rather than changing the docs. I prefer to aim for immutability for def (except for the REPL for...

@smeghead yes, totally agree. So the goal should be 1. allow redefine def in the REPL for pragmatic reasons 2. aim for immutability for def on non-REPL execution In this...

Thanks for the feedback, @jasalt! I think that's a very good idea and a good compromise with the existing behaviour. What do you think, @jenshaase ?