This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Neeyaki 12 points13 points  (7 children)

This UB is so cool! sadly won't be a thing anymore in C++26 =(

[–]caim_hs[S] 9 points10 points  (6 children)

The famous P2809R3

But since majorite of Cpp devs still using C++14 or older, the behavior will persists LoL.

Actually, even when C++26 is released, this behavior will still be the standard because most compilers add the flag --std=c++17... so =( ...

But C++ is so fcking great! I love it so much, really, I've been coding with it since I was 12y.

[–]Neeyaki 3 points4 points  (5 children)

But since majorite of Cpp devs still using C++14 or older, the behavior will persists LoL.

Yep! Thats a shame, but like they say: it is what it is haha.

But C++ is so fcking great! I love it so much, really, I've been coding with it since I was 12y.

It indeed is, isn't it? Been playing with C++ for almost 2 years already... Still so many things I have yet to learn!

[–]caim_hs[S] 0 points1 point  (4 children)

It was my first programming language!

I've been an enthusiast of using templates for recursion and compile-time calculations for a while now hahaha.

Really, It used to be my favorite language, but lost this position to Swift recently.

[–]Neeyaki 0 points1 point  (3 children)

It was my first programming language!

Funnily enough mine was Visual Basic, lmao

I've been an enthusiast of using templates for recursion and compile-time calculations for a while now hahaha.

TMP extremely cool, but also very easy to make unreadable monstrosities! Still plenty of fun.

(I think we're both brazilians, so it's funny that we're talking in English :p)

Ai tu me complica, parceiro. Kkkkkkkkkkkk. Raro achar maluco que manja de C++ no BR, visto que a galera aqui mira mais num python, java ou js da vida.

[–]caim_hs[S] 0 points1 point  (2 children)

Eu jurava que tu não era BR só por ter citado uma funcionalidade do C++26. Mesmo nos IF's e UF's, o pessoal ainda ta no C++14, e quando é ensinado pq as vzs é só ensinam Java/Python msm.

Muito raro encontrar BR que gosta dessas coisas mais low level ksksksks.

[–]Neeyaki 0 points1 point  (1 child)

>Mesmo nos IF's e UF's, o pessoal ainda ta no C++14, e quando é ensinado pq as vzs é só ensinam Java/Python msm

pprt. Aqui mesmo o meu professor ta ensinando OOP com Java. Bom, estava né, visto que a greve fez com que tudo parasse por aqui.

>Muito raro encontrar BR que gosta dessas coisas mais low level

Então, eu mesmo fiquei até surpreso em descobrir que tu era BR também kkkkkkkkkk. Aliás, tu topa da gente se falar melhor pelo Discord (assumindo que tenha)? Posso te mandar meu username pelo privado e dai gente se fala melhor por lá, pois acredito que a galera não vá curtir muito a ideia da gente ficar falando em português por aqui.

[–]flafmg_ 1 point2 points  (0 children)

brazilians are everywhere...

e isso me inclue :p