[Cuis-dev] Possible normalization of code files to use ANSI assignment. Re: New handling of assignment and return arrows

Bernhard Pieber bernhard at pieber.com
Fri Oct 21 08:34:53 PDT 2022


Hi Juan,

I am not sure what you mean by „writing code“. Do I understand that correctly that you would always have to type := instead of _ for assignment, and depending on a preference := would change to a left arrow? Or would you still type _ and it gets converted to := in the code behind the scenes?

Cheers,
Bernhard

> Am 21.10.2022 um 16:40 schrieb Juan Vuletich via Cuis-dev <cuis-dev at lists.cuis.st>:
>
> On 10/21/2022 11:35 AM, Juan Vuletich via Cuis-dev wrote:
>> Hi Folks,
>>
>> I just pushed some updates to the mechanics of how we show arrows for
>> assignment and return.
>>
>> Instead of hijacking the ASCII for _ and ^ I used Shout (the syntax
>> highlight engine) to replace them by an arbitrary glyph. This gets
>> changed back when contents are saved or evaluated. So, files don't
>> change at all, at least not today. This step also let me clean up some
>> code. If in the future we choose to use Unicode for them, even in
>> files (something I'm still unsure about pros and cons), part of the
>> work is already done.
>>
>> If you want to play with these, select 'Use Unicode in Text Editors'
>> and edit #arrowStringForAssignment and #arrowStringForReturn at will.
>>
>> Thanks,
>>
>
> A possible next step is to always save files using the ANSI assignment
> syntax: ':=', and make the conversion a preference. This would mean that
> you'll no longer be able to chose between colon-equal and left arrow
> when writing your code. Files would always be ANSI, and the preference
> would control just how you see all of them.
>
> Pros include better interoperability.
> Cons include a bit less control over your own code.
>
> I think it is a good change, but I'll follow community consensus. So,
> opinions?
>
> Thanks,
>
> --
> Juan Vuletich
> cuis.st
> github.com/jvuletich
> researchgate.net/profile/Juan-Vuletich
> independent.academia.edu/JuanVuletich
> patents.justia.com/inventor/juan-manuel-vuletich
> linkedin.com/in/juan-vuletich-75611b3
> twitter.com/JuanVuletich
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev




More information about the Cuis-dev mailing list