<< 09-06-2025 >>

00:14:51*rockcavera joined #nim
00:39:09*fabricio quit (Quit: WeeChat 3.5)
02:06:30*rockcavera quit (Remote host closed the connection)
04:39:41FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=ccHuhvld
04:40:49FromDiscord<TӨMΛ ☠> ~~Shouldn't have learned several languages at once these few years ago~~
04:41:07FromDiscord<TӨMΛ ☠> (edit) "ago~~" => "ago, now they are all one in my head~~"
04:48:07*nils` quit (Ping timeout: 244 seconds)
04:55:29FromDiscord<lainlaylie> yes, `range[1..4]`
04:56:02FromDiscord<lainlaylie> https://nim-lang.org/docs/manual.html#types-subrange-types
05:49:46*nils` joined #nim
05:50:56Amun-Raor enum
06:17:06*ntat joined #nim
06:21:03*nils` quit (Ping timeout: 252 seconds)
06:55:35*ntat quit (Read error: Connection reset by peer)
07:15:17*nils` joined #nim
07:20:07*ntat joined #nim
07:24:01*ntat quit (Read error: Connection reset by peer)
07:25:11*amadaluzia joined #nim
07:29:38*amadaluzia_ joined #nim
07:30:35*amadaluzia quit (Ping timeout: 265 seconds)
07:50:38*andy-turner joined #nim
07:52:32*andy-turner quit (Remote host closed the connection)
09:24:54*nyeaa49284230101 joined #nim
09:24:57*nyeaa49284230101 quit (Client Quit)
09:25:47*nyeaa49284230101 joined #nim
09:26:38*nyeaa49284230101 quit (Client Quit)
09:27:49*nyeaa49284230101 joined #nim
09:52:27*beholders_eye joined #nim
10:21:09*beholders_eye quit (Ping timeout: 252 seconds)
10:41:45*nils` quit (Ping timeout: 252 seconds)
11:41:03*andy-turner joined #nim
12:06:54*bcksl quit (Quit: \)
12:06:54*end quit (Quit: end)
12:27:27*bcksl joined #nim
12:31:40*andy-turner quit (Quit: Leaving)
12:31:56*andy-turner joined #nim
12:34:22*end joined #nim
12:50:39*nils` joined #nim
12:58:58*nils` quit (Ping timeout: 248 seconds)
13:53:01*beholders_eye joined #nim
14:41:35*nils` joined #nim
14:48:53*nils` quit (Ping timeout: 248 seconds)
14:49:58*ntat joined #nim
15:45:53*nils` joined #nim
17:08:51FromDiscord<godalming123> How do you get nim to force qualified module use? I mean like forcing `httpx.Request` instead of `Request`.
17:10:27FromDiscord<_nenc> `from http import nil`
17:10:45FromDiscord<_nenc> (edit) "http" => "httpx"
17:13:39FromDiscord<godalming123> thanks
17:14:13Amun-Rawhy such requirement?
17:16:54FromDiscord<godalming123> Mainly because I'm used to qualified imports
17:17:58FromDiscord<godalming123> How do you access values and methods (EG `req.path.get()`) for types like this?
17:18:15FromDiscord<godalming123> (edit) "How do you access values and methods ... (EG" added "for types" | removed "for types"
17:25:05FromDiscord<heysokam> In reply to @godalming123 "How do you access": types have no methods. you can use dot syntax (called ufcs) but they are not really methods
17:25:30FromDiscord<heysokam> so it depends on the type you are "accessing" with dot syntax
17:29:31FromDiscord<godalming123> In reply to @heysokam "so it depends on": In this case the type of `req` is `httpx.Request`
17:34:02FromDiscord<heysokam> In reply to @godalming123 "In this case the": https://github.com/ringabout/httpx/blob/47cb5e79c6070153240f7395134885a114b0f039/src/httpx.nim#L595↵seems to be `req.path()`, because its a function
17:35:58Amun-Rayou can check fields on an object easily; every function that accepts that type as a first argument is a "method"
17:36:14Amun-Ra(not to be consused with nim's real methods)
17:36:20Amun-Raconfused*
17:36:20FromDiscord<heysokam> You can see here that `req.path` is not a field of the type↵https://github.com/ringabout/httpx/blob/47cb5e79c6070153240f7395134885a114b0f039/src/httpx.nim#L66-L77↵so its not possible to call `path.get()` because `req.path` field and `req.path.get()` function do not exist
17:38:42Amun-Raon→of, I can't type today
17:48:39FromDiscord<bititboy> why you are messaging with webhook/bot account instead of real one?
17:49:22przmkThe room is bridged with IRC
17:50:51FromDiscord<bititboy> oh
17:52:32Amun-Rayes, we're real OGs ;)
17:53:38FromDiscord<0xfab_10> g stands for grandparent
17:53:46FromDiscord<heysokam> ^
17:54:03Amun-Rathat's what she (gradma) said
17:54:40FromDiscord<heysokam> gradma? she just got out of uni and already a mom. she has it all figured out
17:56:17Amun-Rathose whippersnappers today… ;)
18:23:04FromDiscord<hawkey5212> is it normal for there not to be a `nimble` lock file?
19:20:49*beholders_eye quit (Ping timeout: 260 seconds)
19:21:14*beholders_eye joined #nim
19:41:58FromDiscord<Phil> In reply to @hawkey5212 "is it normal for": Yes. You can generate one, but it's (at least afaik) not defaulted to
19:42:18FromDiscord<Phil> (edit) "In reply to @hawkey5212 "is it normal for": Yes. You can generate one, but it's (at least afaik) not defaulted to ... " added "(in terms of generating one, I believe if one is present it gets respected)"
19:53:54*andy-turner quit (Quit: Leaving)
19:56:45*ntat quit (Quit: leaving)
20:21:29*amadaluzia_ quit (Quit: ZNC 1.9.1 - https://znc.in)
21:26:31*rockcavera joined #nim
22:32:54*rez joined #nim
22:46:46*rez quit (Quit: much snoozes...)
22:59:58*beholders_eye quit (Ping timeout: 245 seconds)
23:05:54FromDiscord<aintea> is there somewhere we can try to suggest stuff for Nimony ?
23:06:13FromDiscord<aintea> I have a few ideas but don't know where to post them
23:57:18FromDiscord<Robyn [She/Her]> In reply to @godalming123 "How do you get": You should probably drop that habit tbf, all it does is make code longer