49 points
*

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.

permalink
report
reply
56 points

Its javascript, itll just let you do that

permalink
report
parent
reply
40 points

it’ll just let you do that

Pretty much sums up JavaScript’s entire philosophy.

permalink
report
parent
reply
3 points

Let me just coalesce these types for you.

permalink
report
parent
reply
-15 points

Imo, its better for it. A tool shouldnt tell the user what to do

permalink
report
parent
reply
15 points

const long pain = 1;

permalink
report
parent
reply
3 points

1L

permalink
report
parent
reply
8 points

void

permalink
report
parent
reply
4 points

Maybe…

const pain = Infinity
permalink
report
parent
reply
8 points

:any

permalink
report
parent
reply
6 points

Ackshually you don’t need a type qualifier in C

permalink
report
parent
reply
7 points
*

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.

permalink
report
parent
reply
3 points

Really? TIL.

permalink
report
parent
reply
4 points

Defaults to int if I’m not mistaken.

permalink
report
parent
reply
1 point

Huh?

permalink
report
parent
reply
33 points

Meanwhile in France: Lunch time!

permalink
report
reply
9 points

can’t stop eating though

permalink
report
parent
reply
12 points

Can’t stop eating dough

permalink
report
parent
reply
3 points

Baguette du fromage

permalink
report
parent
reply
5 points

For mage in pain:

permalink
report
parent
reply
13 points

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

permalink
report
reply
4 points

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

permalink
report
parent
reply
12 points

The variable is not initialised.

permalink
report
reply
11 points

Age or experience? Because both are funny

permalink
report
reply
1 point
*

const_cast<pain>

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 9.4K

    Monthly active users

  • 861

    Posts

  • 33K

    Comments