[Cuis-dev] I just ported printf to Cuis

Nicola Mingotti nmingotti at gmail.com
Fri Aug 20 05:59:50 PDT 2021



On 8/19/21 5:27 PM, Juan Vuletich wrote:
> On 8/16/2021 11:15 AM, Nicola Mingotti via Cuis-dev wrote:
>>
>> Hi guys,
>>
>> I ported printf from Squeak to Cuis. Zero dependencies.
>> I change almost nothing.
>>
>> I did it mostly because i need to format numbers in the classic way.
>> For dates, currencies etc.
>>
>> The package is here:
>> https://github.com/nmingotti/Cuis-Smalltalk-Printf.git
>>
>> ----------- example
>> Feature require: 'Printf'.
>>
>> 'foo %d bar' printf: {123}.        "=>  'foo 123 bar' "
>> 'foo %.5f bar' printf: {123.12}.  "=>  'foo 123.12000 bar' "
>> ----------
>>
>>
>> bye
>> Nicola
>
> Hi Nicola,
>
> This is very nice!
>
> I think we'd add it to 
> https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/tree/master/Packages/Features 
> .Would that be OK? If you agree, you might pull your 
> Cusi-Smalltalk-Dev repo, add the package, and do a pull request. If 
> you wish, you can add the info in your README.md in a file named 
> Printf.md, or in a class comment. Doing it this way makes GitHub 
> commit info correctly show you as the contributor.
>
> Thanks,
> -- 
> Juan Vuletich

Hi Juan,

sure, being a very basic and little function it is better placed near 
the core system.

I added a few methods with 'readme' and 'comments' .Of course the readme 
for now is only a stub.

I did the Github procedure, i hope i did it right !

bye
Nicola













-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210820/0d866fd6/attachment.htm>


More information about the Cuis-dev mailing list