494
Life is hard (lemmy.world)
submitted 1 year ago by [email protected] to c/[email protected]
all 38 comments
sorted by: hot top new old
[-] [email protected] 49 points 1 year ago* (last edited 1 year 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.

[-] [email protected] 54 points 1 year ago

Its javascript, itll just let you do that

[-] [email protected] 39 points 1 year ago

it'll just let you do that

Pretty much sums up JavaScript's entire philosophy.

[-] [email protected] 3 points 1 year ago

Let me just coalesce these types for you.

[-] [email protected] 15 points 1 year ago
[-] [email protected] 8 points 1 year ago
[-] [email protected] 8 points 1 year ago
[-] [email protected] 4 points 1 year ago

Maybe...

const pain = Infinity
[-] [email protected] 6 points 1 year ago

Ackshually you don't need a type qualifier in C

[-] [email protected] 7 points 1 year ago* (last edited 1 year 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.

[-] [email protected] 3 points 1 year ago
[-] [email protected] 4 points 1 year ago

Defaults to int if I'm not mistaken.

[-] [email protected] 1 points 1 year ago
[-] [email protected] 33 points 1 year ago

Meanwhile in France: Lunch time!

[-] [email protected] 9 points 1 year ago
[-] [email protected] 12 points 1 year ago
[-] [email protected] 3 points 1 year ago

Baguette du fromage

[-] [email protected] 5 points 1 year ago

For mage in pain:

[-] [email protected] 13 points 1 year ago

If they move to Python they can just have pain without constant 😜

[-] [email protected] 4 points 1 year ago

And if they learned French instead, they had bread but this is not how it works. We don't always get what we want nor what we deserve

[-] [email protected] 12 points 1 year ago

The variable is not initialised.

[-] [email protected] 11 points 1 year ago

Age or experience? Because both are funny

[-] [email protected] 1 points 1 year ago* (last edited 1 year ago)
[-] [email protected] 7 points 1 year ago

For (life) { suffering; }

[-] [email protected] 7 points 1 year ago

I spent those years in dll hell.

[-] [email protected] 5 points 1 year ago

.so please, I use arch btw.

[-] [email protected] 5 points 1 year ago

bool theEnd;

[-] [email protected] 3 points 1 year ago

Is that a vaio?

[-] [email protected] 1 points 1 year ago
[-] [email protected] 1 points 1 year ago
this post was submitted on 14 Jun 2024
494 points (95.6% liked)

Programmer Humor

24815 readers
687 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