11 Apr 2024 |
tortus_ | OH on matrix I guess | 17:41:27 |
loke | Yes | 17:54:13 |
tortus_ | I didnt receive your message | 18:33:13 |
tortus_ | That or the sync is consistently failing | 18:33:28 |
ngn | In reply to @_discord_326519812820041731:t2bot.io about a week that's not a lot of time. a bit of communicational fasting may be good for a zoomer :) especially with relatives around and so much to see and learn. | 18:48:35 |
subsetpark | Men will literally bypass the censorship regime of the Communist Party of China than ~go to therapy~ not talk to their internet friends for a week | 18:56:29 |
tortus_ | Relatives are mostly it; but you may have a good point | 19:17:36 |
13 Apr 2024 |
fluentpwn | i always say cpp instead of ccp | 19:20:59 |
fluentpwn | its actually embarassing | 19:21:08 |
tonyc1 | I thought it was Советских Социалистических Республик
Stick a c in front of that and you get
Союз Советских Социалистических Республик | 19:43:58 |
fluentpwn | lol | 19:48:57 |
14 Apr 2024 |
| simpalaxy joined the room. | 08:07:05 |
15 Apr 2024 |
coltim | [this](https://old.reddit.com/r/ProgrammingLanguages/comments/1c4r5rb/using_and_with_strings/) is fun | 23:36:01 |
coltim | * [this](https://old.reddit.com/r/ProgrammingLanguages/comments/1c4r5rb/using_and_with_strings/) is fun (overloads on symbols for strings, from a non-array language perspective) | 23:36:36 |
16 Apr 2024 |
discodoug | I, for one, welcome our new string overloads. | 00:09:52 |
alexshroyer | In seriousness though, I need "remove all occurrences of s2 from s1" far more often than "remove one occurrence of s2 from s1". | 01:04:19 |
krftdnr | As the comments figure out, "remove all occurences" is reasonable to define % as being. | 01:20:57 |
krftdnr | and "remove one occurence" should be more specifically "remove last occurence" | 01:21:55 |
Rampoina | I hope all of the commenters complaining about operator overloading never learn about k for their own mental health 😛 | 10:39:54 |
alexshroyer | K overloads are sane and good. Scala sbt overloads are the stuff of nightmares:
percent symbol % is a actually a method used to build dependencies. The double percent sign %% injects the current Scala version
from here: https://stackoverflow.com/a/17461536/2037637 | 12:36:36 |
anaseto | My perspective is that defining arbitrary overloads over user defined types can be problematic, because every project ends up using a kind of dialect, which may be confusing. But having overloads for a few built-in types, including strings, is just natural polysemy, you learn it once and use it everywhere. | 13:03:23 |
ohaitch | surprised comments don't mention [livescript](http://livescript.net/#operators-string ) compile-to-js language from the coffeescript days(which without type inference is not foolproof on determining the operands were strings) + for concat, * for repeat, - for replace (put g flag on regex for replace-all), / for split does not do anything with % 😛 | 13:05:28 |
ohaitch | * surprised comments don't mention [livescript](http://livescript.net/#operators-string ) compile-to-js language from the coffeescript days(which without type inference is not foolproof on determining the operands were strings) + for concat, * for repeat, - for replace with '' (put g flag on regex for replace-all), / for split does not do anything with % 😛 | 13:08:22 |
ohaitch | tbh count just does not seem like a… common operation, compared to those four (granted split is often on a single character, comma or newline or space) | 13:09:19 |
discodoug | Where would we be without plausible deniability? Amirite? | 14:21:20 |
| andradefr8_26148 joined the room. | 17:32:05 |
devin.jl | Download Screenshot_20240416-125152.png | 17:52:21 |
devin.jl | Meanwhile Julia: | 17:52:21 |
fcn.1000 | In reply to @_discord_117836943043198982:t2bot.io sent an image. that's one way to rationalize a bad choice..; | 17:55:30 |
fcn.1000 | % is noncommutative too. why not use that then | 17:56:02 |