[Cuis-dev] I just ported printf to Cuis

Juan Vuletich juan at jvuletich.org
Thu Aug 19 08:27:39 PDT 2021


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
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210819/6877e6ca/attachment.htm>


More information about the Cuis-dev mailing list