<p dir="ltr" style="margin-top:0; margin-bottom:0;">💯 </p>
<br>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Envoyé depuis mon mobile </p><br><br>---- zxq9 a écrit ----<br><br>Looking at this from the perspective of having to read other people's <br><br>code quite a lot, I am pretty unexcited about any changes that would <br><br>introduce glyphy anotations to variable names or move even slightly in <br><br>the direction of allowing rebinding.<br><br><br><br>Few long-time Erlangers would ever feel a desire to use a feature like <br><br>this, but people who have no idea how the paradigm works are very likely <br><br>to overuse it to a fault, making code a nightmare to sort through. This <br><br>particular change with the ^ isn't so bad (but why not just use a new <br><br>name? Y becomes Y1 or NewY or NextY instead of ^Y? I usually prefer <br><br>something that is at least *descriptive* anyway like PopulatedY or <br><br>FilteredY or whatever. The keystrokes are free...) but again, moving in <br><br>the direction of rebinding is really pushing things in a crazy direction.<br><br><br><br>I find Erlang's approach to strict single assignment one of its greatest <br><br>benefits because I can sort through convoluted code written by newcomers <br><br>*much* faster than I can in most other languages specifically because I <br><br>can know for certain where a value came from at a glance.<br><br><br><br>-Craig<br><br><br><br>On 2020/12/25 7:36, Tristan Sloughter wrote:<br><br>> I'd much prefer if `^` was used to allow rebinding. But I know that <br><br>> would be too confusing since Elixir went with ^ to mean regular binding. <br><br>> So maybe `!`?<br><br>> <br><br>> But this change just lets you add the `^` while not changing how <br><br>> anything works? That sounds like it'll cause a lot of confusion when <br><br>> reading since sometimes a bind is using `^` and sometimes they aren't <br><br>> but it is doing the same thing...<br><br>