<< 27-04-2025 >>

00:48:17*skippy8 quit (Quit: WeeChat 4.4.2)
02:02:16FromDiscord<lainlaylie> if you change system to import all modules then you dont need to import any modules to reverse a string
02:16:27FromDiscord<lady_be_good> In reply to @lainlaylie "if you change system": Is that recommended? How do you do that?
02:17:56FromDiscord<leorize> no
03:05:45FromDiscord<DetermiedNim1> In reply to @lainlaylie "if you change system": lmao
03:05:53FromDiscord<DetermiedNim1> anyways uh
03:06:18FromDiscord<DetermiedNim1> is there a way to include enum elements into another enum
03:06:50FromDiscord<DetermiedNim1> actually hmm nvm looking at my code again i probably dont need that
03:07:10FromDiscord<Elegantbeef> A macro would be the only way 😄
03:07:16FromDiscord<DetermiedNim1> makes sense
03:08:11FromDiscord<DetermiedNim1> nah actually ima make my `Operation` type a `distinct set` instead of an enum 😎
03:08:25FromDiscord<Elegantbeef> Why distinct?
03:08:36FromDiscord<DetermiedNim1> idk i was just kidding anyways
03:08:46FromDiscord<DetermiedNim1> just popped up in my head
03:09:06FromDiscord<DetermiedNim1> just as likely as `ptr array`
03:09:17FromDiscord<DetermiedNim1> (edit) "`ptr array`" => "`array`"
03:09:25FromDiscord<Elegantbeef> What in tarnations are you doing?
03:09:36FromDiscord<DetermiedNim1> cooked or cooking https://media.discordapp.net/attachments/371759389889003532/1365887580763324457/image.png?ex=680ef170&is=680d9ff0&hm=28c6afd46293ee1bec04eae7a6fb048dc0dd053d30fbb36489a787529427e923&
03:09:53FromDiscord<DetermiedNim1> In reply to @Elegantbeef "What in tarnations are": mindustry logic interpreter
03:10:10FromDiscord<DetermiedNim1> its probably way easier than im making it but this is fun
03:10:40FromDiscord<Elegantbeef> Why did you want to join two sets?
03:10:45FromDiscord<Elegantbeef> two enums\
03:10:48FromDiscord<DetermiedNim1> https://media.discordapp.net/attachments/371759389889003532/1365887878650921012/message.txt?ex=680ef1b7&is=680da037&hm=1990be6c7a045886ad82538e188343bebb94b880024ca95f4a7de13356cc0b46&
03:11:17FromDiscord<DetermiedNim1> In reply to @Elegantbeef "two enums\*": well, i actually have no memory of why
03:11:37FromDiscord<DetermiedNim1> thats how unnecessary i realized it was 💀
03:12:03FromDiscord<DetermiedNim1> anyways i should probably make this more similar to anuken's code
03:12:57FromDiscord<DetermiedNim1> i think hes actually here
03:13:08FromDiscord<DetermiedNim1> cause i know he wrote animdustry in nim
03:13:34FromDiscord<Elegantbeef> Yea anuken is here
04:17:30*Comet82 joined #nim
04:21:10*Comet82 is now known as C0met
04:23:21*C0met quit (Quit: C0met)
06:04:18*SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev)
06:04:41*SchweinDeBurg joined #nim
06:15:15*skippy8 joined #nim
07:13:45*ntat joined #nim
10:09:48*ntat quit (Quit: leaving)
10:32:49*switchy quit (Ping timeout: 244 seconds)
10:33:04*switchy joined #nim
11:42:31*derpydoo quit (Ping timeout: 252 seconds)
14:00:24FromDiscord<griffith1deadly> sent a code paste, see https://play.nim-lang.org/#pasty=hVLftcEE
14:50:16*alexdaguy joined #nim
15:39:00*ntat joined #nim
16:32:54*alexdaguy quit (Ping timeout: 245 seconds)
16:33:05FromDiscord<jseb> sent a code paste, see https://play.nim-lang.org/#pasty=sbcYvnCL
16:35:12FromDiscord<Elegantbeef> It's an object variant
16:35:41FromDiscord<Elegantbeef> There are safeties that check at compile time that you pass in the right enum value with fields you're initing and at runtime you only access fields your descriminator(kind) allow
16:37:07FromDiscord<jseb> thank you, i note « object variant » (didn't find it in « mastering nim »)
16:42:20strogon14Sometimes also called, in other languages, a tagged union, I believe
16:43:03FromDiscord<Elegantbeef> Correct that's the general name
16:43:17FromDiscord<Elegantbeef> It's also called a sum type or in Rust land an enum cause they hate your guts
16:43:18FromDiscord<jseb> ah found it … just two pages after my current reading. « 16.20 Object variants » , p.88 of the first edition
16:43:53FromDiscord<Elegantbeef> I've never read someone trying to validate a purchase so hard before
16:44:46FromDiscord<jseb> i like money well spent , and i like having references documentations (my books are full of annotations)
16:47:04FromDiscord<Elegantbeef> Yea I couldn't reason why I'd buy the manual
16:47:13FromDiscord<Elegantbeef> If you like it I guess have at 'er
16:50:54FromDiscord<jseb> holy shot, you weren't joking about « enum »
16:56:31FromDiscord<Elegantbeef> Huh?
16:58:50FromDiscord<jseb> it's really called an enum in rust documentation
17:42:34*przmk quit (Remote host closed the connection)
17:45:19*przmk joined #nim
20:53:23*xet7 quit (Remote host closed the connection)
20:54:50*xet7 joined #nim
21:14:20*ntat quit (Quit: leaving)
21:45:52*xet7 quit (Remote host closed the connection)
22:38:15*xet7 joined #nim