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

RFC: Adding a sfmt simple format function #8

@ScottPJones

Description

@ScottPJones

I had an idea to add a simple formatter, which could have different methods for different types of values:

sfmt( value [, format [, format arguments] ] )

The reason to have the value first, is that you could have methods added to have a default format for specific types.

For example, the C sprintf(buf, “%*s”, 8, string) would become something like:
sfmt( string, “*s”, 8)

I realize this duplicates functionality already present, it is just an attempt to make the syntax simpler and easier to use... (note: I'd originally suggested naming it fmt, before I found out that Formatting.jl already had a function with that name... unfortunately, at least in the case of fmt(string, string), it would be ambiguous).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions