LadyButterfly she/her@piefed.blahaj.zone to Science Memes@mander.xyzEnglish · 4 days agoI dunnopiefed.cdn.blahaj.zoneexternal-linkmessage-square314fedilinkarrow-up1779arrow-down176
arrow-up1703arrow-down1external-linkI dunnopiefed.cdn.blahaj.zoneLadyButterfly she/her@piefed.blahaj.zone to Science Memes@mander.xyzEnglish · 4 days agomessage-square314fedilink
minus-squareExtremeDullard@piefed.sociallinkfedilinkEnglisharrow-up64arrow-down1·4 days ago5 isn’t a valid function name, is obviously the right answer.
minus-squareTheRedSpade@lemmy.worldlinkfedilinkEnglisharrow-up16·4 days agoHow can you be sure it’s not defined when we only see one line?
minus-squareVoroxpete@sh.itjust.workslinkfedilinkEnglisharrow-up8arrow-down1·edit-24 days agoThey didn’t say it’s not defined, they said it’s not a valid name. Most languages don’t allow function names to start with a number, so 5 literally cannot be a function if that’s the case. But that’s assuming this isn’t some really obscure language.
minus-squaremarcos@lemmy.worldlinkfedilinkEnglisharrow-up1·3 days agoI’m pretty sure that’s a module operator…
5 isn’t a valid function name, is obviously the right answer.
How can you be sure it’s not defined when we only see one line?
They didn’t say it’s not defined, they said it’s not a valid name. Most languages don’t allow function names to start with a number, so 5 literally cannot be a function if that’s the case.
But that’s assuming this isn’t some really obscure language.
Depends on the language.
I’m pretty sure that’s a module operator…