Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Add printf1 function #93

Closed
wants to merge 1 commit into from
Closed

Add printf1 function #93

wants to merge 1 commit into from

Conversation

gustaphe
Copy link

Implements printf1([io],fmt,x) function to work as a drop-in replacement for @print.

A bit of a hack: simply calls print(io,sprintf1(fmt, x)), so offers no performance benefit over sprintf1, but is QOL. My original idea was to rewrite sprintf1 into printf1, and make sprintf1 work via an IOBuffer, but because sprintf1 does several replacements and similar operations that require strings I decided to not touch it for now.

Temporary fix for #91

@kescobo
Copy link
Member

kescobo commented Mar 1, 2024

This package is no longer maintained (see #111). Please consider using Format.jl instead, and if this feature is unavailable / still desired, open an issue or PR there.

@kescobo kescobo added the wontfix label Mar 1, 2024
@kescobo kescobo closed this Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants