Skip to content

Commit

Permalink
added new stdlib module 'strformat'; refs #5600; refs #6507
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Dec 17, 2017
1 parent eab46c5 commit 26198e4
Show file tree
Hide file tree
Showing 4 changed files with 598 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Expand Up @@ -136,3 +136,6 @@ This now needs to be written as:
Types that shadow procs and vice versa are marked as ambiguous (bug #6693).
- ``yield`` (or ``await`` which is mapped to ``yield``) never worked reliably
in an array, seq or object constructor and is now prevented at compile-time.
- For string formatting / interpolation a new module
called [strformat](https://nim-lang.org/docs/strformat.html) has been added
to the stdlib.
4 changes: 4 additions & 0 deletions doc/lib.rst
Expand Up @@ -102,6 +102,10 @@ String handling
case of a string, splitting a string into substrings, searching for
substrings, replacing substrings.

* `strformat <strformat.html>`_
Macro based standard string interpolation / formatting. Inpired by
Python's ```f``-strings.

* `strmisc <strmisc.html>`_
This module contains uncommon string handling operations that do not
fit with the commonly used operations in strutils.
Expand Down

1 comment on commit 26198e4

@kaushalmodi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome!

Please sign in to comment.