Newest at the top
2025-01-11 23:55:44 +0100 | Everything | (~Everythin@195.138.86.118) (Quit: leaving) |
2025-01-11 23:49:10 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 260 seconds) |
2025-01-11 23:46:19 +0100 | rekahsoft | (~rekahsoft@70.51.99.237) rekahsoft |
2025-01-11 23:45:27 +0100 | justsomeguy | (~justsomeg@user/justsomeguy) justsomeguy |
2025-01-11 23:42:17 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2025-01-11 23:39:30 +0100 | Raito_Bezarius | (~Raito@wireguard/tunneler/raito-bezarius) Raito_Bezarius |
2025-01-11 23:32:03 +0100 | tnt1 | (~Thunderbi@user/tnt1) tnt1 |
2025-01-11 23:31:57 +0100 | weary-traveler | (~user@user/user363627) user363627 |
2025-01-11 23:31:43 +0100 | weary-traveler | (~user@user/user363627) (Quit: Konversation terminated!) |
2025-01-11 23:31:30 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds) |
2025-01-11 23:28:28 +0100 | takuan | (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection) |
2025-01-11 23:26:55 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2025-01-11 23:26:44 +0100 | tnt1 | (~Thunderbi@user/tnt1) (Ping timeout: 252 seconds) |
2025-01-11 23:26:25 +0100 | Raito_Bezarius | (~Raito@wireguard/tunneler/raito-bezarius) (Ping timeout: 260 seconds) |
2025-01-11 23:16:32 +0100 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
2025-01-11 23:16:13 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds) |
2025-01-11 23:15:36 +0100 | ash3en | (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Quit: ash3en) |
2025-01-11 23:13:57 +0100 | target_i | (~target_i@user/target-i/x-6023099) (Quit: leaving) |
2025-01-11 23:11:34 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2025-01-11 23:11:02 +0100 | michalz | (~michalz@185.246.207.218) (Remote host closed the connection) |
2025-01-11 23:07:54 +0100 | <geekosaur> | it is very much a pattern in functional languages, and a very important one |
2025-01-11 23:07:39 +0100 | <geekosaur> | I mean, `map`, pretty much everything in Foldable and Traversable, `interact` (which used to be the first thing you did in ghci), lots of things in Haskell use HOFs |
2025-01-11 23:06:39 +0100 | <geekosaur> | it's very idiomatic in Haskell |
2025-01-11 23:04:49 +0100 | <c_wraith> | Same as every other language, really. |
2025-01-11 23:04:41 +0100 | <c_wraith> | Ah, that's much more common. But there's only one way out of that. Write code, ask for feedback, try out alternatives, develop your tastes. |
2025-01-11 23:03:35 +0100 | <ash3en> | more like non-idiomatic, too complicated, verbose code |
2025-01-11 23:03:16 +0100 | <ash3en> | maybe anti-pattern is not the best term |
2025-01-11 23:02:32 +0100 | tnt2 | tnt1 |
2025-01-11 23:02:32 +0100 | tnt1 | (~Thunderbi@user/tnt1) (Ping timeout: 252 seconds) |
2025-01-11 23:01:35 +0100 | tnt2 | (~Thunderbi@user/tnt1) tnt1 |
2025-01-11 23:01:12 +0100 | __monty__ | (~toonn@user/toonn) (Quit: leaving) |
2025-01-11 23:00:54 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 276 seconds) |
2025-01-11 22:56:10 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2025-01-11 22:54:34 +0100 | <c_wraith> | But it's rare that factoring something in terms of higher-order functions turns out to be a negative. |
2025-01-11 22:53:58 +0100 | <c_wraith> | there are anti-patterns in Haskell. Things like the existential typeclass pattern, which laziness turns out to be a much simpler solution to in nearly every case. |
2025-01-11 22:53:25 +0100 | rekahsoft | (~rekahsoft@70.51.99.237) (Remote host closed the connection) |
2025-01-11 22:46:27 +0100 | <geekosaur> | ("anti-pattern"?) |
2025-01-11 22:45:23 +0100 | <ash3en> | i did use them in the past already, but I often am too afraid to use anti-patterns I am not aware of |
2025-01-11 22:45:18 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds) |
2025-01-11 22:43:13 +0100 | <geekosaur> | you'll get used to HOFs eventually 🙂 |
2025-01-11 22:42:03 +0100 | <ash3en> | geekosaur: yes, thank you. i will keep it like this for now and maybe put them into a single function later on : ) |
2025-01-11 22:41:32 +0100 | <tomsmeding> | I think I'm going to stay with a helper function. :) |
2025-01-11 22:40:47 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2025-01-11 22:40:46 +0100 | <geekosaur> | ash3en, that works. I think you should also be able to write tokenizeNumber in terms of tokenizeString though |
2025-01-11 22:40:41 +0100 | <tomsmeding> | the tail blows up but the zipWith doesn't evaluate the tail on [] |
2025-01-11 22:40:02 +0100 | <tomsmeding> | probie: I did not |
2025-01-11 22:39:58 +0100 | <tomsmeding> | oh the zipWith saves you here, cute |
2025-01-11 22:39:44 +0100 | <lambdabot> | True |
2025-01-11 22:39:43 +0100 | <tomsmeding> | > (and . (zipWith (==) <*> tail)) [] |
2025-01-11 22:39:41 +0100 | <probie> | You didn't specify that you wanted it to be readable |