2026/02/24

Newest at the top

2026-02-24 18:45:34 +0100wickedjargon(~user@2605:8d80:5431:6cb2:b646:a30f:510c:87ce) wickedjargon
2026-02-24 18:42:16 +0100 <Milan_Vanca> Hmm map with lookup sounds interesting too.
2026-02-24 18:40:27 +0100 <ncf> i mean that's fine, if you have a lot of those you might want to define a list or a map like [(methodGet, counterGet), (methodPut, counterPut), ...] and then do a lookup into that
2026-02-24 18:39:13 +0100 <Milan_Vanca> If I had only 2 then I would use an if expression which is perfect solution for that case
2026-02-24 18:38:28 +0100 <Milan_Vanca> Like I can do it with if but it does not look like nicer solution.
2026-02-24 18:37:29 +0100 <Milan_Vanca> What about now? https://paste.tomsmeding.com/ptnApMeq
2026-02-24 18:36:23 +0100 <ncf> well, an if expression
2026-02-24 18:36:14 +0100 <ncf> i don't see a reason not to use an if statement there
2026-02-24 18:35:44 +0100ljdarj(~Thunderbi@user/ljdarj) (Ping timeout: 245 seconds)
2026-02-24 18:34:55 +0100weary-traveler(~user@user/user363627) (Remote host closed the connection)
2026-02-24 18:33:10 +0100Pozyomka(~pyon@user/pyon) pyon
2026-02-24 18:32:45 +0100Pozyomka(~pyon@user/pyon) (Quit: brb)
2026-02-24 18:32:27 +0100 <Milan_Vanca> I think I can do this https://paste.tomsmeding.com/FfemQcpX but this case of is ugly?
2026-02-24 18:27:24 +0100petrichor(~jez@user/petrichor) (Ping timeout: 245 seconds)
2026-02-24 18:26:42 +0100cipherrot(~jez@user/petrichor) petrichor
2026-02-24 18:25:36 +0100euphores(~SASL_euph@user/euphores) euphores
2026-02-24 18:24:54 +0100merijn(~merijn@77.242.116.146) (Ping timeout: 255 seconds)
2026-02-24 18:23:45 +0100bggd_(~bgg@2a01:e0a:fd5:f510:ad7c:fa54:e40d:9544) (Remote host closed the connection)
2026-02-24 18:21:07 +0100 <Milan_Vanca> I probably need whole new function for it
2026-02-24 18:20:50 +0100petrichor(~jez@user/petrichor) petrichor
2026-02-24 18:20:48 +0100 <Milan_Vanca> Imagine I want to have another otherwise with under counter path.
2026-02-24 18:18:56 +0100 <Milan_Vanca> So is there other way how to rewrite this more nicely? https://paste.tomsmeding.com/NokCDmVI
2026-02-24 18:10:10 +0100 <ncf> if you really want a RHS equivalent of guards there is MultiWayIf https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/multiway_if.html
2026-02-24 18:09:39 +0100 <ncf> guards don't do anything that let and case can't
2026-02-24 18:05:29 +0100lxsameer(~lxsameer@Serene/lxsameer) lxsameer
2026-02-24 18:04:12 +0100 <Milan_Vanca> Hello guyz.. Stupid quesiton incoming! We can nicely nest "case of" fn a b c = case a of.. case b of... Lovely but sadly I can't pattern match and need guards. Which I don't know how to nest. I don't want to duplicate e1 && e2 && e3 when only e4 changes.
2026-02-24 18:02:14 +0100lbseale(~quassel@user/ep1ctetus) ep1ctetus
2026-02-24 18:00:59 +0100lbseale(~quassel@user/ep1ctetus) (Quit: No Ping reply in 180 seconds.)
2026-02-24 18:00:55 +0100Milan_Vanca(~milan@user/Milan-Vanca:32634) Milan_Vanca
2026-02-24 17:54:20 +0100tromp(~textual@2001:1c00:3487:1b00:7955:9591:6018:7ef9)
2026-02-24 17:52:59 +0100lisbeths(uid135845@id-135845.lymington.irccloud.com) (Quit: Connection closed for inactivity)
2026-02-24 17:48:33 +0100Googulator(~Googulato@2a01-036d-0106-499d-1c5a-0e4b-5795-d7e3.pool6.digikabel.hu)
2026-02-24 17:48:19 +0100Googulator(~Googulato@2a01-036d-0106-499d-1c5a-0e4b-5795-d7e3.pool6.digikabel.hu) (Quit: Client closed)
2026-02-24 17:45:06 +0100jmcantrell_jmcantrell
2026-02-24 17:42:57 +0100jmcantrell_(~weechat@user/jmcantrell) jmcantrell
2026-02-24 17:40:48 +0100jtnuttall(~jeremy@user/jeremyn) (Ping timeout: 255 seconds)
2026-02-24 17:37:54 +0100philopsos1(~caecilius@user/philopsos) philopsos
2026-02-24 17:34:16 +0100petrichor(~jez@user/petrichor) (Quit: ZNC 1.10.1 - https://znc.in)
2026-02-24 17:22:18 +0100_d0t(~{-d0t-}@user/-d0t-/x-7915216) {-d0t-}
2026-02-24 17:19:16 +0100misterfish(~misterfis@84.53.85.146) (Ping timeout: 265 seconds)
2026-02-24 17:16:56 +0100paddymahoney(~paddymaho@pool-99-250-10-137.cpe.net.cable.rogers.com) (Ping timeout: 256 seconds)
2026-02-24 17:13:14 +0100pavonia(~user@user/siracusa) (Quit: Bye!)
2026-02-24 17:12:07 +0100califax_califax
2026-02-24 17:11:17 +0100Square2(~Square4@user/square) (Ping timeout: 268 seconds)
2026-02-24 17:10:54 +0100califax(~califax@user/califx) (Quit: ZNC 1.10.1 - https://znc.in)
2026-02-24 17:10:49 +0100califax_(~califax@user/califx) califx
2026-02-24 17:07:00 +0100_d0t(~{-d0t-}@user/-d0t-/x-7915216) (Ping timeout: 264 seconds)
2026-02-24 16:54:53 +0100CiaoSen(~Jura@2a02:8071:64e1:da0:5a47:caff:fe78:33db) (Client Quit)
2026-02-24 16:54:52 +0100CiaoSen(~Jura@2a02:8071:64e1:da0:5a47:caff:fe78:33db) CiaoSen
2026-02-24 16:54:40 +0100CiaoSen(~Jura@2a02:8071:64e1:da0:5a47:caff:fe78:33db) (Client Quit)