00:45:19 | * | beholders_eye quit (Ping timeout: 260 seconds) |
01:02:39 | FromDiscord | <esafak> is there a way to determine what the default value of an object's property is? |
01:49:45 | * | blackbeard420 joined #nim |
02:36:55 | * | rockcavera quit (Remote host closed the connection) |
05:03:33 | * | nils` quit (Ping timeout: 252 seconds) |
06:31:18 | * | nils` joined #nim |
06:54:16 | * | skippy8 joined #nim |
06:58:10 | * | nils` quit (Ping timeout: 272 seconds) |
07:39:47 | * | ntat joined #nim |
07:59:09 | * | beholders_eye joined #nim |
08:35:56 | * | amadaluzia joined #nim |
08:44:03 | * | amadaluzia quit (Quit: ZNC 1.10.1 - https://znc.in) |
08:48:43 | * | amadaluzia joined #nim |
09:01:52 | * | nils` joined #nim |
09:05:57 | FromDiscord | <nirokayyy> sent a code paste, see https://play.nim-lang.org/#pasty=CvzdsgVR |
09:09:05 | * | amadaluzia quit (Quit: ZNC 1.10.1 - https://znc.in) |
09:09:22 | * | amadaluzia joined #nim |
09:11:17 | * | om3ga joined #nim |
09:15:53 | FromDiscord | <blashyrk> In reply to @nirokayyy "hellu, i have a": I don't think `try/except` work in compile time procs/macros |
09:17:30 | FromDiscord | <nirokayyy> huh weird |
09:17:36 | FromDiscord | <blashyrk> In reply to @nirokayyy "huh weird": https://forum.nim-lang.org/t/8367 |
09:18:19 | FromDiscord | <nirokayyy> okay thank you :) |
09:18:25 | FromDiscord | <nirokayyy> i have found another way to achieve what i wanted from the code above xD |
09:25:11 | FromDiscord | <lainlaylie> unrelated but nim 1.6.20 is ancient |
09:34:18 | FromDiscord | <janakali> In reply to @nirokayyy "hellu, i have a": https://nim-lang.org/docs/system.html#slurp%2Cstring↵https://nim-lang.org/docs/system.html#staticRead%2Cstring |
10:20:38 | * | lumidify quit (Server closed connection) |
10:20:53 | * | lumidify joined #nim |
11:10:13 | * | nils` quit (Ping timeout: 252 seconds) |
11:27:42 | * | beholders_eye quit (Ping timeout: 276 seconds) |
12:11:25 | * | nils` joined #nim |
12:50:59 | FromDiscord | <hawkey5212> Is there any way to get a value of an object, such that the value is immutable, and a reference to the value? |
12:59:51 | * | nils` quit (Ping timeout: 252 seconds) |
13:11:48 | FromDiscord | <janakali> In reply to @hawkey5212 "Is there any way": the best you can get is [`strictFuncs`](https://nim-lang.org/docs/manual_experimental.html#strict-funcs` but that only protects func arguments.↵see here: https://github.com/nim-lang/Nim/issues/8370↵and here: https://nim-lang.org/blog/2020/09/01/write-tracking.html↵why this is not implemented |
13:12:44 | FromDiscord | <dhhbrzwn> is any improvement planned for auto import completion in future ? i see that https://github.com/nim-lang/nimsuggest/issues/47 |
13:12:44 | FromDiscord | <janakali> you can also use getters and setters, but eww |
13:13:09 | FromDiscord | <janakali> (edit) "[`strictFuncs`](https://nim-lang.org/docs/manual_experimental.html#strict-funcs`" => "[`strictFuncs`](https://nim-lang.org/docs/manual_experimental.html#strict-funcs)" |
13:19:45 | FromDiscord | <hawkey5212> In reply to @janakali "the best you can": Looks like getters and setters it is. If you think that's ewww, then I highly recommend you check out rust. |
13:23:35 | FromDiscord | <hawkey5212> Basically, I don't want interior mutability. I need to a type in my library that is strictly read only, unless using tightly controlled API to make changes |
13:24:09 | strogon14 | Then just don't export the type's fields? |
13:32:18 | * | bgupta quit (Server closed connection) |
13:32:26 | * | bgupta joined #nim |
14:00:24 | * | nils` joined #nim |
14:01:57 | * | beholders_eye joined #nim |
15:33:30 | FromDiscord | <nirokayyy> In reply to @lainlaylie "unrelated but nim 1.6.20": yeah, i am keeping one of my old project alive (dependencies dont work smoothly with Nim 2.x |
15:34:59 | FromDiscord | <nirokayyy> In reply to @janakali "https://nim-lang.org/docs/system.html#slurp%2Cstrin": awesome, thank you↵also good proc name xD |
15:35:19 | FromDiscord | <nirokayyy> (edit) "2.x" => "2.x)" |
15:49:46 | * | skippy8 quit (Quit: WeeChat 4.6.3) |
17:19:45 | * | nils` quit (Ping timeout: 252 seconds) |
17:37:58 | * | beholders_eye quit (Ping timeout: 240 seconds) |
18:10:53 | * | nils` joined #nim |
19:04:57 | * | skippy8 joined #nim |
19:45:19 | * | ntat quit (Quit: Leaving) |
19:55:46 | * | ntat joined #nim |
20:42:35 | * | ntat quit (Quit: Leaving) |
20:52:31 | * | fallback quit (Read error: Connection reset by peer) |
21:00:46 | * | fallback joined #nim |
21:16:28 | * | skippy8 quit (Quit: WeeChat 4.6.3) |
21:39:29 | * | cm quit (Ping timeout: 260 seconds) |
21:39:41 | * | cm_ joined #nim |
21:40:06 | * | cm_ is now known as cm |
21:42:36 | * | rockcavera joined #nim |
21:43:03 | * | xet7 joined #nim |
22:53:27 | * | amadaluzia quit (Quit: ZNC 1.10.1 - https://znc.in) |