isn't the whole point of rst though that it's sufficiently structured to
extract detailed code blocks to pass to the compiler? ie if you're not using
this feature of rst, it's completely useless compared to markdown which has a
much larger developer mindshare.
tbh, I found the runnableExamples
regarding editors, the same applies - an editor could easily provide ide
features in code block sections thanks to RST
IMO, unary operators are often best replaced by explicit names.
For eg: %* in
[https://nim-lang.github.io/Nim/json.html#%25%2A.m%2Cuntyped](https://nim-lang.github.io/Nim/json.html#%25%2A.m%2Cuntyped)
would be best replaced by toJson (and %* could become a deprecated alias to
it):
@geezer9 maybe send a bug report /feature request on
[https://github.com/nim-lang/Nim/issues](https://github.com/nim-lang/Nim/issues)
?
Seems indeed useful to have a standard library module for that.
Could be based on stuff like this :
const output = staticExec("cc --version")`
when output.hasSomeProperty: ... # eg: check version > something
Run
const hasLTO = not staticExec("clang
Increasingly, I've been running into situations where it would be beneficial,
from a cross-platform and cross-compiler point of view, to selectively enable
flags and features depending on the capabilities and defaults of the C compiler
is being used. There is some support for doing stuff like
Yeah, sorry, I simply didn't get a chance to do the write up yet.
Some of my `runnableExamples` also has `.. code-block:: nim` ;P
Actually I changed from `when is_main_module:` to `runnableExamples` (for
libs), is the correct way.
I think is an awesome feature, because other lang have DocTests or the like
(Python, Rust, etc), but the code is on comments,
.. code-block:: nim (or similar) tends to go out of date eg [1], unlike
runnableExamples which is guaranteed to stay in sync. runnableExamples is also
easier to write IMO.
## links
/cc @dom96|
---|---
* for eg:
*
[https://nim-lang.org/blog/2018/06/23/community-survey-2018.html](https://nim-lang.org/blog/2018/06/23/community-survey-2018.html)
was launched in june
## links
*
I recently learning about the --warning[ProveField] flag for object variants,
and enjoy the increased level of type checking that it provides. However, I
have a small issue using this flag alongside procedures that take a specific
branch of the object variant. The procedures shouldn't be used
Can a user define a custom "role" for the interpretation of ## source comments
by docgen?
The site
<[http://docutils.sourceforge.net/docs/howto/rst-roles.html](http://docutils.sourceforge.net/docs/howto/rst-roles.html)>
explains how to do this, but the context is python programming.
Can this
Thank you both, this helped alot!
13 matches
Mail list logo