Which IDE to use in 2024?

2024-05-23 Thread argl
I'm looking for an IDE with * auto completion/suggestion * context aware navigation (jumping to the definition of a function, for example) * privacy by default * little or no cost * simple setup and/or complete instructions for setting up I used to program a bit in nim a few years ag

Namespaces for non-enums without customizing the import statement?

2022-01-16 Thread argl
I see, that helps a lot. Thanks!

Namespaces for non-enums without customizing the import statement?

2022-01-16 Thread argl
As I understand, this would remove `experimental.hello` completely. It _should_ be available for users of the package.

Namespaces for non-enums without customizing the import statement?

2022-01-16 Thread argl
Thanks for these ideas. Alas both seem somewhat hacky, I was hoping for something more established. Also, both require modifying each occurrence of a symbol and/or don't work for every kind of symbol. I might have over-generalized my question in the hope of getting a general answer. If namespac

Namespaces for non-enums without customizing the import statement?

2022-01-15 Thread argl
@xigoi well, give me the benefit of doubt and assume I would use it when useful and helpful, not to terrorize users of my lib. ;)

Namespaces for non-enums without customizing the import statement?

2022-01-15 Thread argl
Motivation: In c++ I often used namespaces to group symbols within a header file. The intention being to ensure code using these symbols remains easy to read in regard which symbol is called. Omitting the namespace might be convenient for writing code but makes reading it harder. If needed, the

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread argl
I think the issue is that `declared` is evaluated at compile time while `paramStr` can only work at runtime.

Order of execution: where to find understanding

2021-12-02 Thread argl
Sorry if that offended you, that was not my intention. Just me trying to make sense of your question.

Order of execution: where to find understanding

2021-12-02 Thread argl
I get the impression you don't see the difference in the example code between _defining a procedure_ and _calling a procedure_. If that is the case [https://nim-lang.org/docs/tut1.html#procedures](https://forum.nim-lang.org/postActivity.xml#httpscolonslashslashnimminuslangdotorgslashdocsslashtut1

Making a distinct type slightly less distinct

2021-12-01 Thread argl
Thanks, I was indeed missing a space. Fixed now. :)

Making a distinct type slightly less distinct

2021-12-01 Thread argl
Thank you, this looks indeed helpful. Regarding code blocks, yeah, I tried to apply them, but got tripped up because I wrote "..code-block:: nim" instead of ".. code-block:: nim".

Making a distinct type slightly less distinct

2021-12-01 Thread argl
(This question is mostly about whether this approach makes sense or if there is a vastly easier way.) For example, when working with 2-dimensional coordinates, I might define: > type > >> X = distinct int >> >> Y = distinct int So that I can't mix up the types by accident, which could happen,

Proper way to create local packages?

2021-11-09 Thread argl
So far, I'd say a plain "nimble install" (run in the local package's directory) does what I originally wanted. I probably should have used "nimble uninstall myLocalPackage" to undo "nimble develop". After I did, "nimble install" behaved as expected.

Proper way to create local packages?

2021-11-08 Thread argl
Ouch, that explains those discrepancies. Thanks, I'll have a look if those clear up my issues. Well, while learning about nim I wrote small programs. Some I like to reuse in other programs, also mostly motivated by learning about something. The most convenient way I found so far is organizing t

Proper way to create local packages?

2021-11-08 Thread argl
Basically I want to reuse several very small utilities I wrote. Till recently I used (possibly misused) "nimble develop" on a single package containing the various files. This has been serviceable so far, but always felt like I don't really know what's happening. To change that I tried to read t

Bit of a rough experience registering to the forum

2021-07-01 Thread argl
First post here, so hello everyone! I want to give a bit of feedback regarding my experience with registering on this forum, in the hope it helps improving the process. I signed up today but did not check my emails for some hours. When I followed the confirmation link I got an error saying the