JPDev@programming.dev to Programmer Humor@programming.dev · 8 months ago===programming.devimagemessage-square76fedilinkarrow-up1683arrow-down117
arrow-up1666arrow-down1image===programming.devJPDev@programming.dev to Programmer Humor@programming.dev · 8 months agomessage-square76fedilink
minus-squaremumblerfish@lemmy.worldlinkfedilinkarrow-up4·8 months agoMathematica also has an === operator. And :=.
minus-squarelurch (he/him)@sh.itjust.workslinkfedilinkarrow-up8·8 months agoIt’s also very language specific, like Pascal/Delphi also have “:=” for assignments and “=” for comparison, etc
minus-squarezarkanian@sh.itjust.workslinkfedilinkarrow-up3·8 months agoThat makes much more sense than the other way.
minus-squaremumblerfish@lemmy.worldlinkfedilinkarrow-up1·8 months agoI think it’s called ‘delayed assignment’. So it is almost like =, but you can use arguments to define functions, f[a_]:=a+2.
Mathematica also has an
===
operator. And:=
.It’s also very language specific, like Pascal/Delphi also have “:=” for assignments and “=” for comparison, etc
That makes much more sense than the other way.
What does the walrus operator do?
I think it’s called ‘delayed assignment’. So it is almost like
=
, but you can use arguments to define functions,f[a_]:=a+2
.