496
Life is hard (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] henfredemars@infosec.pub 49 points 6 months ago* (last edited 6 months ago)

Missing type or identifier.

A const what?

Also, I read that you have to assign a const when it is declared. Something doesn’t feel right about this statement.

[-] Kaboom@reddthat.com 55 points 6 months ago

Its javascript, itll just let you do that

[-] vithigar@lemmy.ca 40 points 6 months ago

it'll just let you do that

Pretty much sums up JavaScript's entire philosophy.

[-] jaybone@lemmy.world 3 points 6 months ago

Let me just coalesce these types for you.

[-] 9point6@lemmy.world 8 points 6 months ago
[-] S0UPernova@lemmy.world 4 points 6 months ago

Maybe...

const pain = Infinity
[-] pipe01@programming.dev 6 points 6 months ago

Ackshually you don't need a type qualifier in C

[-] Static_Rocket@lemmy.world 7 points 6 months ago* (last edited 6 months ago)

Well, assuming you meant type specifier, at least not before C99. After that it is required. C23 explicitly states that a type specifier is required for all declarations.

If you actually meant type qualifier, then no. That was never required.

[-] henfredemars@infosec.pub 3 points 6 months ago
[-] zaphod@sopuli.xyz 4 points 6 months ago

Defaults to int if I'm not mistaken.

[-] jaybone@lemmy.world 1 points 6 months ago
this post was submitted on 14 Jun 2024
496 points (95.6% liked)

Programmer Humor

19821 readers
967 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS