@ngn Pretty sure destructuring assignment's an example of pattern matching, but that'd be something like [1, 2 | A] = ... instead (not totally sure, though)
@ngn Python's destructuring assignment only works on iterables, and can't have defaults. Python's now (last I checked like a year ago) added a dunder method to allow pattern matching from most objects.
@Peilonrayz so, when it's with an iterable, it's called destructuring assignment, and when it's with an arbitrary object, it's called pattern matching?
apparently chat feeds pull from meta half as often as main, which is why they are noticeably slower. TIL... presumably some of y'all already knew? i didn't :P
From Codidact with permission.
Description
APL trains are a series of functions, that get applied to an argument in this way:
(f g) x = f g x
(f g h) x = (f x) g (h x)
(a b c d e f) x = (a (b c (d e f))) x = a (b x) c (d x) e (f x)
Trains evaluate from the right to the left, so in the last examp...
I have a habit of managing to destroy production code, development and testing copies, and backups with a single mistake, so I'm sure my superpowers could evolve to find workarounds for transactions too :p
You know how sometimes golfing languages can be painful to use? Well I decided to make one. I got the pain part right, but I might have added too much of that to compensate for reduced golfiness. Can't share any details yet, but it should be released within a day.
As far as I can tell it includes a major feature never before seen in a golfing language.
This looks like a minor issue that isn't impacting how things are working which is why we status-declined this. However, if there are more instances of users being awarded the same badge twice please let us know and we may revisit if this is a larger bug. — Rosie ♦4 hours ago
Idk, letting lyxal have two silver code golf badges severely affects his ability to brag about having two silver code golf badges :P
@hyper-neutrino well, (set 'a b) is syntactic sugar for (set (quote a) b), where quote is what the q of setq stands for. setq apparently also takes an even number of arguments, while set always takes two; I don't know why that is.
@hyper-neutrino did you mean the link in the 4th panel of the comic, the link in the 4th panel of the comic in the 2nd panel of the comic, or the link in the 4th panel of the comic in the 2nd panel of the comic in the 2nd panel of the comic?
@hyper-neutrino I think the first client-server database that I used turned transactions on my default, so if you typed "delete from foo;" then all that would happen is that everyone's application would wait for you to commit rollback. I don't know why that setting isn't more popular.
in lisp (not scheme), predicates usually end with a p (listp, evenp), however picolisp chooses to have no suffix (atom, pair, not) or have a ? (num?, sym?, flg?)
Hang on, let me rephrase that: Don't do that. Stealth pings got banned for a reason. Pinging can be disruptive, and you should only use it to ping people you're trying to talk to
Now working at the Swift team, and w/ WWDC here, it's a big week!
@cairdcoinheringaahing did the community ever migrate to another platform? Axtell, was never finished, but I recall other people working on other sites
It's pretty good tbh. The biggest issue is activity - it gets maybe 1 question every few days, if that
Plus, I can't speak for others, but I'm definitely "sunken-cost fallacy"-ed for CGCC
@hyper-neutrino the chaining in this answer really confuses me. Why does ) not create a new monadic chain so that it's parsed as (×BS)€(ċ>1)# instead of (×BS)ċ>1)#?
aw, did something happen while I was at dinner again :P
hey there Downgoat :D
@cairdcoinheringaahing I believe µ creates a new chain and groups the old chain into a subchain which if you apply a quick to, loses the "new chain" meaning
yeah the exact line is something like chain.pop() or chains.pop() except I think popping from an empty list in Python is an error so it's probably more like chain.pop() if chain else chains.pop()
speaking of ) i'm trying to golf hyper's train evaluation order solution and it may or may not be biting me in the ass that ) just isn't allowed at the start of a line
yeah come to think of it the "retains the left argument" caveat is also probably just a weird way of explaining how it doesn't really act like a separator to begin with