<< 11-06-2026 >>

00:56:49*zero`_ quit (Ping timeout: 244 seconds)
01:10:29*zero` joined #nim
01:20:41*xet7 quit (Ping timeout: 248 seconds)
01:30:14*amadaluzia quit (Read error: Connection reset by peer)
01:32:59*xet7 joined #nim
01:33:05*amadaluzia joined #nim
02:03:43*Mister_Magister_ joined #nim
02:05:07*Mister_Magister quit (Ping timeout: 276 seconds)
02:07:00*Mister_Magister_ is now known as Mister_Magister
02:13:06*Mister_Magister_ joined #nim
02:13:48*Mister_Magister quit (Ping timeout: 252 seconds)
02:16:26*Mister_Magister_ is now known as Mister_Magister
02:30:52*Skippy8 joined #nim
02:38:46*rockcavera quit (Remote host closed the connection)
03:00:57*Skippy8 quit (Ping timeout: 248 seconds)
03:06:32*Skippy8 joined #nim
03:18:35*Skippy8 quit (Ping timeout: 265 seconds)
07:27:02*zero` quit (Remote host closed the connection)
07:37:30*zero` joined #nim
07:53:58*Skippy8 joined #nim
08:47:21*Skippy8 quit (Ping timeout: 246 seconds)
08:56:06*Skippy8 joined #nim
09:33:29*Skippy8 quit (Ping timeout: 244 seconds)
09:40:22*Skippy8 joined #nim
09:58:35emeryI said I was unsure about converters but I did find a nice use for them, wrapping pointers in a var object and implicitly accessing the pointer member https://git.syndicate-lang.org/ehmry/nftables-actor/src/commit/9b56932d08c229e10f2034c4ba437a9fb762a094/src/nftables_actor/nftables.nim#L44
10:08:41FromDiscord<leonesraupyn27> https://media.discordapp.net/attachments/371759389889003532/1514572072062287983/image.jpg?ex=6a2bdaa9&is=6a2a8929&hm=946dfb952029c811d2a340b566adeac45474ed415204f6bbb2a7dc0f2e97e5e6& https://media.discordapp.net/attachments/371759389889003532/1514572072356155452/image.jpg?ex=6a2bdaa9&is=6a2a8929&hm=fcee8a82f3aaba5577e818205f1270cfdb0578e36b048f37af05eea8a1c69b24&
11:08:21Amun-RaI'm not a fan of hiding real types that way
12:05:29strogon14Why not? Protects against leaks and nil access, does it not?
12:45:34Amun-Rahow using converter for that protects againt a leak and explicit setting the value doesn't?
14:31:46*Skippy8 quit (Ping timeout: 248 seconds)
14:46:02*Skippy8 joined #nim
14:54:30*Skippy8 quit (Ping timeout: 246 seconds)
15:10:31strogon14I was referring to the encapsulation of the pointer in an object (aka "hiding"), not just the converter. The latter just makes it more convenient, so you don't have to write nft.getCtx when pasing an Nft object to a wrapped function that expects a Ctx pointer.
15:18:40*emery quit (Read error: Connection reset by peer)
15:23:13*emery joined #nim
15:43:42*Skippy8 joined #nim
16:05:59*beholders_eye joined #nim
16:08:39Amun-Raif it's something very frequent to write I'd consider wrapping it into converter; otherwise I'd always vote for explicity
16:50:40FromDiscord<infernoali964> https://media.discordapp.net/attachments/371759389889003532/1514673230873497670/image.jpg?ex=6a2c38df&is=6a2ae75f&hm=ea4b582abfe41ce72c75e0a0675df7d2be59210784da98e04e4974fd171a7e7f& https://media.discordapp.net/attachments/371759389889003532/1514673231213232188/image.jpg?ex=6a2c38df&is=6a2ae75f&hm=8954d85d4b908f3d5f73d3af0ad3c2c22e7b5fabbad29aa97e38a80fa8e91028&
16:52:09*Skippy8 quit (Ping timeout: 252 seconds)